Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#3409 closed defect (fixed)

Spinner widget - if min="0", widget allows scrolling beyond 0

Reported by: guest Owned by: Sam Foster
Priority: high Milestone: 0.9
Component: Dijit - Form Version: 0.4.2rc1
Keywords: Cc:
Blocked By: Blocking:

Description

Try ... 1st spinner allows you to scroll to -1 and beyond, second stops at 9 as it should... <html>

<head>

<title>Welcome</title>

<link rel="stylesheet" type="text/css" href="<essd:url value="css/maincontent.css"/>"></link>

<script type="text/ecmascript" src="<essd:url value="js/dojo-0.4.3-ajax/dojo.js"/>"> <script type="text/javascript"> showDebug();

dojo.require("dojo.event.*"); Load Dojo's code relating to widget managing functions dojo.require("dojo.widget.*");

dojo.require("dojo.widget.Spinner"); must require explicitly, since some widgets are experimental

function helloPressed() {

dojo.io.bind({

url: '<essd:url value="js/common.js"/>', handler: helloCallback

});

}

function init() { var helloButton = dojo.widget.byId('helloButton'); dojo.event.connect(helloButton, 'onClick', 'helloPressed') debug("init"); }

dojo.addOnLoad(init); debug("dojo");

function helloCallback(type, data, evt)

{

if (type == 'error')

alert('Error when retrieving data from the server!');

else

alert(data);

}

</script>

</head> <body>

<form action="test.action" method="get">

<h1>Webwork is up and running !!! ...</h1> <button dojoType="Button" widgetId="helloButton">Hello World!</button> <br/>

<br>

<h1>integer spinner</h1> <br> initial value=+1,000, delta=10, min=9 max=1550, signed=always separator=,<br> <input dojoType="IntegerSpinner?"

value="0" delta="1" min="-1" max="100" signed="false" separator="," maxlength="3" widgetId="integertextbox1" name="x"> <br>

<input dojoType="IntegerSpinner?"

value="+1,000" delta="10" min="9" max="1550" signed="always" separator="," maxlength="20" widgetId="integertextbox2">

<br>

<button type="Submit">Submit</button>

</form>

</body>

</html>

Attachments (1)

test_Spinner.html (952 bytes) - added by bill 12 years ago.
shows that this bug doesn't exist in 0.9

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 years ago by bill

Component: GeneralDijit
Owner: changed from anonymous to Sam Foster

Please *attach* test files using the "Attach file" button, and file dijit bugs against dijit. And also leave contact info in the "reported by" field or bug description. Thanks!

comment:2 Changed 12 years ago by bill

Version: 0.90.4.2rc1

comment:3 Changed 12 years ago by bill

Milestone: 0.9
Resolution: fixed
Status: newclosed

This is working in 0.9. I'll attach a testcase.

Changed 12 years ago by bill

Attachment: test_Spinner.html added

shows that this bug doesn't exist in 0.9

comment:4 Changed 8 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.