git.ithinksw.org
/
extjs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade to ExtJS 4.0.7 - Released 10/19/2011
[extjs.git]
/
docs
/
source
/
PropertyHandler.html
diff --git
a/docs/source/PropertyHandler.html
b/docs/source/PropertyHandler.html
index
8ad2851
..
b01d4b4
100644
(file)
--- a/
docs/source/PropertyHandler.html
+++ b/
docs/source/PropertyHandler.html
@@
-3,8
+3,8
@@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>The source code</title>
- <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
- <script type="text/javascript" src="../prettify/prettify.js"></script>
+ <link href="../
resources/
prettify/prettify.css" type="text/css" rel="stylesheet" />
+ <script type="text/javascript" src="../
resources/
prettify/prettify.js"></script>
<style type="text/css">
.highlight { display: block; background-color: #ddd; }
</style>
<style type="text/css">
.highlight { display: block; background-color: #ddd; }
</style>
@@
-27,23
+27,25
@@
Ext.define('Ext.fx.PropertyHandler', {
statics: {
defaultHandler: {
statics: {
defaultHandler: {
- pixelDefaults
: ['width', 'height', 'top', 'left']
,
+ pixelDefaults
RE: /width|height|top$|bottom$|left$|right$/i
,
unitRE: /^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/,
unitRE: /^(-?\d*\.?\d*){1}(em|ex|px|in|cm|mm|pt|pc|%)*$/,
+ scrollRE: /^scroll/i,
computeDelta: function(from, end, damper, initial, attr) {
damper = (typeof damper == 'number') ? damper : 1;
computeDelta: function(from, end, damper, initial, attr) {
damper = (typeof damper == 'number') ? damper : 1;
- var match = this.unitRE.exec(from),
+ var unitRE = this.unitRE,
+ match = unitRE.exec(from),
start, units;
if (match) {
from = match[1];
units = match[2];
start, units;
if (match) {
from = match[1];
units = match[2];
- if (!
units && Ext.Array.contains(this.pixelDefaults,
attr)) {
+ if (!
this.scrollRE.test(attr) && !units && this.pixelDefaultsRE.test(
attr)) {
units = 'px';
}
}
from = +from || 0;
units = 'px';
}
}
from = +from || 0;
- match =
this.
unitRE.exec(end);
+ match = unitRE.exec(end);
if (match) {
end = match[1];
units = match[2] || units;
if (match) {
end = match[1];
units = match[2] || units;