Hey,
taking a deeper look at the screenshot you posted, I only have one idea.
Logging the bounds in total brings the reference to that bounds object to the
console. On the second and third line, you are logging the values (primitive
types), which will be copied before writing to the console. Logging the
reference means, that later changes are displayed in the object as well -->
these values might not reflect the same point in time. Just check out the
simple demo I put together to demonstrate:
http://demo.qooxdoo.org/current/playground/#%7B%22code%22%3A%22var%2520a%2520%253D%2520new%2520Object()%253B%250Aconsole.log(a)%253B%250Aconsole.log(a.b)%253B%250Aa.b%2520%253D%25201%253B%22%2C%20%22mode%22%3A%22ria%22%7D<http://demo.qooxdoo.org/current/playground/#%7B%22code%22:%22var%2520a%2520%253D%2520new%2520Object()%253B%250Aconsole.log(a)%253B%250Aconsole.log(a.b)%253B%250Aa.b%2520%253D%25201%253B%22,%20%22mode%22:%22ria%22%7D>
Regards,
Martin
Am 09.10.2012 um 14:55 schrieb fei wang
<wang...@romeo-foxtrot.com<mailto:wang...@romeo-foxtrot.com>>:
Is there anyone can help me ? or is it a bug of 'qx.ui.container.Composite' ?
On Thu, Oct 4, 2012 at 11:24 PM, fei wang
<wang...@romeo-foxtrot.com<mailto:wang...@romeo-foxtrot.com>> wrote:
Hi,
[Demo]
http://tinyurl.com/9txhe2u
In my demo, when click the "Full Screen" button, some msg will be output in
console.
[Question]
why the results as below are different ?
**result 1**
console.log(centerPane.getBounds()); // output : {height: 307, left: 0, top:
0, width: 416}
**result 2**
console.log(centerPane.getBounds().width); // output : 202 (why the output is
not 416 ?)
console.log(centerPane.getBounds().height);// output : 452 (why the output is
not 307 ?)
[attachment]
screenshot_20121004.PNG
------------------------------------------------------------------------------
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
qooxdoo-devel@lists.sourceforge.net
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
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel