Comparing version 1.13.2 to 1.13.3
@@ -18,3 +18,3 @@ { | ||
"dependencies": { | ||
"dojo": "1.13.2" | ||
"dojo": "1.13.3" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
@@ -440,11 +440,30 @@ define([ | ||
var bb = domGeometry.position(this.domNode); | ||
if(bb.w >= viewport.w || bb.h >= viewport.h){ | ||
this._shrunk = false; | ||
// First check and limit width, because limiting the width may increase the height due to word wrapping. | ||
if(bb.w >= viewport.w){ | ||
dim = { | ||
w: Math.min(bb.w, viewport.w), | ||
h: Math.min(bb.h, viewport.h) | ||
w: viewport.w | ||
}; | ||
domGeometry.setMarginBox(this.domNode, dim); | ||
bb = domGeometry.position(this.domNode); | ||
this._shrunk = true; | ||
}else{ | ||
this._shrunk = false; | ||
} | ||
// Now check and limit the height | ||
if(bb.h >= viewport.h){ | ||
if(!dim){ | ||
dim = { | ||
w: bb.w | ||
}; | ||
} | ||
dim.h = viewport.h; | ||
this._shrunk = true; | ||
} | ||
if(dim){ | ||
if(!dim.w){ | ||
dim.w = bb.w; | ||
} | ||
if(!dim.h){ | ||
dim.h = bb.h; | ||
} | ||
} | ||
} | ||
@@ -451,0 +470,0 @@ |
@@ -138,3 +138,3 @@ define([ | ||
_onFocus: function(){ | ||
_onFocus: function(/*String*/ by){ | ||
if(this.disabled || this.readOnly){ return; } | ||
@@ -146,2 +146,8 @@ var val = this.get('value'); | ||
this.textbox.value = formattedValue; | ||
// when NumberTextBox or descendants (i.e. CurrencyTextBox) format textbox.value when focused | ||
// all browsers except Chrome will select textbox contents when tabbed to by keyboard | ||
// force selection if not focused by mouse | ||
if (by !== "mouse") { | ||
this.textbox.select(); | ||
} | ||
} | ||
@@ -148,0 +154,0 @@ } |
{ | ||
"name": "dijit", | ||
"version": "1.13.2", | ||
"version": "1.13.3", | ||
"directories": { | ||
@@ -9,3 +9,3 @@ "lib": "." | ||
"dependencies": { | ||
"dojo": "1.13.2" | ||
"dojo": "1.13.3" | ||
}, | ||
@@ -12,0 +12,0 @@ "description": "Dijit provides a complete collection of user interface controls based on Dojo, giving you the power to create web applications that are highly optimized for usability, performance, internationalization, accessibility, but above all deliver an incredible user experience.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5544745
54328
+ Addeddojo@1.13.3(transitive)
- Removeddojo@1.13.2(transitive)
Updateddojo@1.13.3