v8.2p_2012-06-01/PowerEdition Deployment (built 2012-06-01)
Firefox 10.0.4
Hello,
I'm trying to alter the height of a header on a window. The method I'm using to accomplish this can be seen in the code below.
While this successfully changes the height and displays the widgets, the actual header strip/style doesn't seem to have expanded. How can I have the gray bar extend to the height I've specified?
(see attached screenshot for clarification)
Note how "Bread" doesn't appear to be in the header.
Firefox 10.0.4
Hello,
I'm trying to alter the height of a header on a window. The method I'm using to accomplish this can be seen in the code below.
Code:
class MyWindow extends com.smartgwt.client.widgets.Window { public MyWindow() { Map<String, Object> headerDefaults = new HashMap<String, Object>(); headerDefaults.put("height", 45); setAttribute("headerDefaults", headerDefaults, true); } } public class MyTest implements EntryPoint { public void onModuleLoad() { com.smartgwt.client.widgets.Window window = new MyWindow(); window.setWidth(600); window.setHeight(300); CheckboxItem cheese = new CheckboxItem("Cheese"); cheese.setHeight(18); CheckboxItem bread = new CheckboxItem("Bread"); bread.setHeight(18); DynamicForm form = new DynamicForm(); form.setFields(cheese, bread); form.setNumCols(2); HLayout header = new HLayout(); header.setMembers(form); ListGrid listGrid = new ListGrid(); VLayout layout = new VLayout(); layout.setMembers(listGrid); window.setHeaderControls(header); window.addItem(layout); window.draw(); } } }
(see attached screenshot for clarification)
Note how "Bread" doesn't appear to be in the header.
Comment