I forgot to say that "orientationchange" event makes more sense than "resize"
event in mobile use case.
A resize event typically only occurs on resizing a desktop browser. The only
way to "resize" a tablet or mobile device, is to change its orientation from
landscape to portrait.
Greetz Christopher
Am 15.10.2012 um 10:17 schrieb Christopher Zündorf:
> Hi Kora,
>
> it is possible, but not through installing a listener to the widget.
>
> Resize and OrientationChange events are fired by the browser window:
>
> qx.event.Registration.addListener(window, "orientationchange",
> this._onOrientationChange, this);
> qx.event.Registration.addListener(window, "resize", this._onResize, this);
>
> There is also a mixin available, which fixes/releases the size of a
> container for you:
> qx.ui.mobile.core.MResize
>
> Just include the mixin in your class and call "fixSize" or "releaseSize"
>
> There are a lot of examples in the source code of the mobile showcase
> available.
>
>
> Greetz Christopher
>
>
> Am 15.10.2012 um 09:41 schrieb kora:
>
>> Hi,
>>
>> Has anybody experience in getting the "resize" event on a mobile environment
>> ?
>>
>> I want to catch the "resize" event of a "qx.ui.mobile.container.Scroll"
>> containing a "mobileclient.ui.form.Image" to recalculate / scale it's size.
>> I tried to use
>>
>> this.addListener("resize",function(){
>> this._handleResize();
>> }, this);
>>
>> but the event doesn't appear.
>>
>>
>>
>>
>> I tried to use
>>
>> this.getRoot().addListener("resize",function(){
>> this._handleResize();
>> }, this);
>>
>> also on my Application.js but the event doesn't appear.
>>
>>
>>
>>
>> Cheers
>>
>> Kora
>>
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://qooxdoo.678.n2.nabble.com/How-to-get-the-resize-event-on-a-mobile-environment-tp7581700.html
>> Sent from the qooxdoo mailing list archive at Nabble.com.
>>
>> ------------------------------------------------------------------------------
>> Don't let slow site performance ruin your business. Deploy New Relic APM
>> Deploy New Relic app performance management and know exactly
>> what is happening inside your Ruby, Python, PHP, Java, and .NET app
>> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
>> http://p.sf.net/sfu/newrelic-dev2dev
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel