viktorthang / mgwt

Automatically exported from code.google.com/p/mgwt
Other
0 stars 0 forks source link

Setting appearance for MCheckBox is not working correctly #343

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Configure MGWT without themes (don't use <inherits 
name='com.googlecode.mgwt.ui.client.theme.platform.Platform'/>) 
2. RootPanel.get().add(new MCheckBox(new MCheckBoxIOSAppearance()));

Problem: The Widget is a combination of default- and iOS-theme (MGWT 
2.0.0-beta2) but should be iOS-theme

The reason for this seems to be, that the UIBinder template uses <ui:with 
field="apperance" 
type="com.googlecode.mgwt.ui.client.widget.input.checkbox.MCheckBoxAppearance" 
/>  (this is also done in other widgets UIBinder templates). Therefore 
MCheckBoxDefaultAppearance (deferred binding) is used within the UIBinder 
template but the MCheckBox constructor is called with MCheckBoxIOSAppearance.

Possible solution: Use provided=true in combination with the UiBinder template.

Original issue reported on code.google.com by raphael....@gmail.com on 9 Aug 2014 at 7:14

GoogleCodeExporter commented 8 years ago
This is the old issue tracked, moved to: https://github.com/mgwt/mgwt/issues/116

Original comment by kurka.da...@gmail.com on 9 Aug 2014 at 8:11