Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SpinnerItem and SliderItem larger

    Hi, I am developing application for big 19" touch screen. I need all components bigger then usually. My question: Is there possibility to make spinner bigger. The obvious way through setHeight() does not work (picker icon does not grow bigger together with editor part, also setPickerIconWidth() does not work)

    Code:
    public class SpinnerTest implements EntryPoint {
    	public void onModuleLoad() {
    		VLayout vl = new VLayout();
    		DynamicForm frmSpinner = new DynamicForm();
    		SpinnerItem spiHours = new SpinnerItem("spiHours");
    		spiHours.setTitle("<span style='font-size:22'>spiHours</span>");
    		spiHours.setMin(0);
    		spiHours.setMax(16);
    		spiHours.setStep(0.5);
    		spiHours.setHeight(40);
    		spiHours.setPickerIconWidth(50);
    		SelectItem siSelect = new SelectItem("siSelect", "<b>select Item</b>");
    		siSelect.setHeight(40);
    		siSelect.setPickerIconWidth(50);
    		frmSpinner.setFields(spiHours, siSelect);
    		vl.addMember(frmSpinner);
    		RootPanel.get().add(vl);
    	}
    }
    as you can see from screen.png SelectItem picker icon is reacting when height of te component is growing, additionally I can use setPickerIconWidth method on SelectItem. For SpinnerItem there is no effect.

    And another question: How to make SliderItem bigger ?
    I am using smartgwt 2.2, gwt 2.0.3 in development mode
    Attached Files
Working...
X