user2067036
user2067036

Reputation: 81

How to remove window borders in Smart GWT

I am using Smart GWT 3.1. The window has no title. Therefore it leaves uneven borders. How can I get rid of the borders? Or make all size borders even?

Upvotes: 1

Views: 1812

Answers (1)

stanleyxu2005
stanleyxu2005

Reputation: 8231

The following lines will solve your problem:

setShowHeader(false);
setShowStatusBar(false);
setLayoutMargin(0); // to remove 4px gray border
setAttribute("styleName", "", true); // to remove 1px (rounded) outer border
setBodyStyle(""); // to remove 1px body border
setBodyColor(null); // to make background transparent

Have a nice day ;-)

Upvotes: 2

Related Questions