Fix DFW resizing after reaching the sanity check width, props merty, fixes #17983 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@18399 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -246,11 +246,13 @@ PubSub.prototype.publish = function( topic, args ) {
|
||||
return;
|
||||
}
|
||||
|
||||
w = n + w;
|
||||
|
||||
if ( w < 200 || w > 1200 ) // sanity check
|
||||
return;
|
||||
|
||||
el.width( n + w );
|
||||
setUserSetting('dfw_width', n + w);
|
||||
el.width( w );
|
||||
setUserSetting('dfw_width', w);
|
||||
}
|
||||
|
||||
ps.subscribe( 'showToolbar', function() {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user