jounikoivuviita/ToolbarWindow — Issue #4: Dosen't work properly when setClosable(false)
Author: Virusmater
Created: 2011-12-16 17:19:28+00:00
State: open

When set "setClosable" to "true" - standart cross close button dissapear and left free space in right bottom corner. So, if I want my own close button - it will be not absolutly on the right on the window title.
Just add to your code
if (isClosable()){
this.toolbar.addStyleName("toolbarwindow-toolbar-closable");
} else {
this.toolbar.addStyleName("toolbarwindow-toolbar");
}
and in CSS

.toolbarwindow-toolbar-closable {
position: absolute;
top: -27px;
right: 30px;
background: transparent;
}

.toolbarwindow-toolbar {
position: absolute;
top: -27px;
right: 3px;
background: transparent;
}