Ticket #6262: 6262.patch
| File 6262.patch, 5.1 kB (added by doughays, 10 months ago) |
|---|
-
form/_Spinner.js
95 95 this._connects.push(dijit.typematic.addListener(this.upArrowNode, this.textbox, {keyCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false}, this, "_typematicCallback", this.timeoutChangeRate, this.defaultTimeout)); 96 96 this._connects.push(dijit.typematic.addListener(this.downArrowNode, this.textbox, {keyCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false}, this, "_typematicCallback", this.timeoutChangeRate, this.defaultTimeout)); 97 97 if(dojo.isIE){ 98 // When spinner is moved from hidden to visible, call _setStateClass to remind IE to render it. (#6123) 99 var _this = this; 100 this.connect(this.domNode, "onresize", 101 function(){ setTimeout(dojo.hitch(_this, 102 function(){ 103 // cause the IE expressions to rerun 104 this.upArrowNode.style.behavior = ''; 105 this.downArrowNode.style.behavior = ''; 106 // cause IE to rerender 107 this._setStateClass(); 108 }), 0); 109 } 110 ); 98 this._IEbehaviors.push(this.upArrowNode); 99 this._IEbehaviors.push(this.downArrowNode); 111 100 } 112 101 } 113 102 }); -
form/ValidationTextBox.js
155 155 if(this.invalidMessage == "$_unset_$"){ this.invalidMessage = this.messages.invalidMessage; } 156 156 var p = this.regExpGen(this.constraints); 157 157 this.regExp = p; 158 }, 159 160 postCreate: function(){ 161 this.inherited(arguments); 162 if(dojo.isIE){ 163 // When moved from hidden to visible, call _setStateClass to remind IE to render it. (#6123) 164 var _this = this; 165 this._IEbehaviors = [this.textbox]; 166 this.connect(this.domNode, "onresize", 167 function(){ setTimeout(dojo.hitch(_this, 168 function(){ 169 // cause the IE expressions to rerun 170 for (i=0; i < this._IEbehaviors.length; i++){ 171 this._IEbehaviors[i].style.behavior=''; 172 } 173 // cause IE to rerender 174 this._setStateClass(); 175 }), 0); 176 } 177 ); 178 } 158 179 } 159 180 } 160 181 ); -
tests/form/test_Spinner.html
40 40 <br> 41 41 <br> 42 42 initial value=1000, delta=10, min=9 max=1550<br> 43 <label for="integerspinner2">Spinbox with custom styling (width= 50%, 200% Courier font): </label>43 <label for="integerspinner2">Spinbox with custom styling (width=25%, <span style="font-size:200%;font-family:Courier;">200% Courier font</span>): </label> 44 44 <input dojoType="dijit.form.NumberSpinner" 45 style="font-size:200%;font-family:Courier;border:1px solid blue;width:50%; "45 style="font-size:200%;font-family:Courier;border:1px solid blue;width:50%;width:25%;" 46 46 value="1000" 47 47 smallDelta="10" 48 48 constraints="{min:9,max:1550,places:0}" -
tests/form/test_validate.html
90 90 <span class="noticeMessage"> NumberTextBox class, <b>tabIndex=1</b>, Attributes: {trim: true}, no initial value specified, tooltipPosition=[above, below]</span> 91 91 </div> 92 92 <div class="testExample"> 93 <span style="font-family:Courier;font-size:150%;">150% Courier: 93 94 <input id="q03" type="text" name="age" tabIndex=1 94 95 dojoType="dijit.form.NumberTextBox" 95 96 promptMessage="(optional) Enter an age between 0 and 120" … … 98 99 constraints="{places:0,min:0,max:120}" 99 100 onChange="console.debug('onChange fired for widget id = ' + this.id + ' with value = ' + arguments[0]);" 100 101 tooltipPosition="above, below" 101 /> 102 /></span> 102 103 </div> 103 104 104 105 <div class="dojoTitlePaneLabel"> -
themes/dijit.css
43 43 font-family: inherit; /* trigger pseudo font-family inheritance */ 44 44 behavior: expression( /* if the font-family = inherit, then get the parent's font-family */ 45 45 function(self){ 46 var cs, e;47 46 try{ 48 if(self.currentStyle.fontFamily=='inherit'){ 49 cs = self.parentNode.currentStyle || document.documentElement.currentStyle; 47 if(self.currentStyle.fontFamily=='inherit' || self.fontFamily=='inherit'){ 48 self.fontFamily = self.currentStyle.fontFamily; 49 var cs = self.parentNode.currentStyle || document.documentElement.currentStyle; 50 50 self.style.fontFamily = cs.fontFamily; 51 51 } 52 52 self.style.behavior = null; /* #5562: prevent re-eval of css expression */ … … 1483 1483 .dj_ie .dijitSpinner .dijitInputLayoutContainer .dijitArrowButton { 1484 1484 behavior: expression( 1485 1485 function(self){ 1486 var e;1487 1486 try{ 1488 1487 var h = self.parentNode.offsetHeight/2; 1489 1488 if(h > 1){