-
22 Jul 2009 2:59 AM #1
[OPEN-91][3.0.0] Resizable - preserveRatio + constrainTo
[OPEN-91][3.0.0] Resizable - preserveRatio + constrainTo
On the ExtJS examples page of Resizables, run:
When resizing, only the handle you're using is honoured regarding constrainTo. This also results in an interesting (50%) constraint, when using the SE-handle.Code:var div = Ext.DomHelper.insertBefore(document.body.firstChild, { tag: "div", style: "background:#ff0;width: 200px;height: 100px;" }); Ext.get("transparent").appendTo(div); var transparent = new Ext.Resizable('transparent', { wrap:true, preserveRatio: true, constrainTo: div });
-
23 Jul 2009 4:57 AM #2
You may want to stipulate your observed behavior for each resize handle for each browser you have issues with.
For example:
FF3.5.1- se resizer doesn't work initially (for given code in given starting conditions)
- drag east resizer as far right as possible, the resizer won't resize after that (might be related to the other thread by this OP where the resized item actually falls a little outside the constrained area)
- the south resizer works, but there is a significant delay after clicking the south resizer handle before the resize proxy shows up
MJ
API Search || Ext 3: docs-demo-upgrade guide || User Extension Repository
Frequently Asked Questions: FAQs
Tutorial: Grid (php/mysql/json) , Application Design and Structure || Extensions: MetaGrid, MessageWindow
-
16 Mar 2010 7:37 AM #3
[3.1.1/3.2] status ?
[3.1.1/3.2] status ?
any update for this behaviour in future releases ?
Thanks
-
18 Mar 2010 8:01 AM #4
Yes, still waiting for a fix :-) Note: Its also bugging without the preserveRatio.
-
18 Mar 2010 1:20 PM #5
-
19 Mar 2010 4:37 AM #6
Yes. Just run my code above without that property. I have also noticed; the bigger the resize handles - and how (distance-wise) 'earlier' you grab them - the further you can drag it out of the constraint region (until cursor hits the boundary).
And @mjlecomte - I will do that when I have time, xor when the case is not displaying a bug within 2 clicks.
-
19 Mar 2010 8:26 AM #7Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
I think there is a lot of confusion on this one because we didn't have the bug standards at the time this was originally entered: http://www.extjs.com/forum/showthread.php?t=71015
-
19 Mar 2010 1:16 PM #8
You're right!
It is a way to make it fixed quicker.
previous post edited for [Release]s.
-
9 Nov 2010 12:56 PM #9
How's this:
onerror = setTimeout(Ext.emptyFn, Infinity)
Thank you for reporting this bug. We will make it our priority to review this report.


