SmartGWT version
SmartGWT4.0
Browser(s) and version(s) involved
Mozilla 26.0
Chrome 33.0.1750.154
Problem encountered
While using negative step on a SpinnerItem, you can't go down (by pressing up) when you reach Max and can't go up (by pressing down) when you reach Min which totally block the spinner (can't go up AND down once a limit is reached)
Example : your spinnerItem is set to have max at 5 and step at -1, if you are at 5 and you press down, the value will be 6 and so this doesn't work (legit) but if you press up, the value will be 4 yet this is denied (You can still edit manually).
Sample code
Kindly yours
SmartGWT4.0
Browser(s) and version(s) involved
Mozilla 26.0
Chrome 33.0.1750.154
Problem encountered
While using negative step on a SpinnerItem, you can't go down (by pressing up) when you reach Max and can't go up (by pressing down) when you reach Min which totally block the spinner (can't go up AND down once a limit is reached)
Example : your spinnerItem is set to have max at 5 and step at -1, if you are at 5 and you press down, the value will be 6 and so this doesn't work (legit) but if you press up, the value will be 4 yet this is denied (You can still edit manually).
Sample code
Code:
import com.google.gwt.core.client.EntryPoint;
import com.smartgwt.client.widgets.form.DynamicForm;
import com.smartgwt.client.widgets.form.fields.SpinnerItem;
public class Spinner implements EntryPoint {
@Override
public void onModuleLoad() {
DynamicForm df = new DynamicForm();
SpinnerItem si = new SpinnerItem("priority");
si.setMin(1);
si.setMax(5);
si.setValue(5);
si.setStep(-1);
df.setItems(si);
df.draw();
}
}