Hi everyone. I'm checking out the new carousels in my application and I've
a strange issue on firefox, although seems work OK in webkit.
For multiple reasons, I have a NavigationPage without the scroller to be
able of set flex widgets with the full height. I'm doing it in this way:
var content = root.getContent();
var scroll = root._getScrollContainer();
root.remove(scroll);
root.add(content, {
flex : 1
});
This works great, but if I add a Carousel on this page, the length of each
page of the carousel is miss calculated.
Check out this
snippet<http://demo.qooxdoo.org/2.1/playground/#%7B%22code%22%3A%22var%2520root%2520%253D%2520new%2520qx.ui.mobile.page.NavigationPage%28%29%253B%250A%250Aroot.setTitle%28%2522Hello%2520World%2522%29%253B%250Aroot.addListener%28%2522initialize%2522%252C%2520function%28%29%2520%257B%250A%2520%2520%250A%2520%2520var%2520content%2520%253D%2520root.getContent%28%29%253B%250A%2520%2520var%2520scroll%2520%253D%2520root._getScrollContainer%28%29%253B%250A%2520%2520%2520%2520%2520%2520%2520%2520%250A%2520%2520root.remove%28scroll%29%253B%250A%2520%2520root.add%28content%252C%2520%257B%250A%2520%2520%2520%2520%2520%2520flex%2520%253A%25201%250A%2520%2520%257D%29%253B%250A%2520%2520%250A%250A%2520%2520var%2520carousel%2520%253D%2520new%2520qx.ui.mobile.container.Carousel%28%29%253B%250A%250A%2520%2520var%2520page1%2520%253D%2520new%2520qx.ui.mobile.container.Composite%28%29%253B%250A%2520%2520var%2520page2%2520%253D%2520new%2520qx.ui.mobile.container.Composite%28%29%253B%250A%250A%2520%2520page1.add%28new%2520qx.ui.mobile.basic.Label%28%2522Foo%2522%29%29%253B%250A%2520%2520page2.add%28new%2520qx.ui.mobile.basic.Label%28%2522Bar%2522%29%29%253B%250A%250A%2520%2520carousel.add%28page1%29%253B%250A%2520%2520carousel.add%28page2%29%253B%250A%250A%2520%2520root.getContent%28%29.add%28carousel%29%253B%250A%257D%252Cthis%29%253B%250A%250Athis.getManager%28%29.addDetail%28root%29%253B%250Aroot.show%28%29%253B%22%2C%20%22mode%22%3A%22mobile%22%7D>.
It works great for me in Chrome 23 and fails in Firefox 16.
As far as I know, it's because the _updateCarouselLayout method in
qx.ui.mobile.container.Carousel is getting a wrong value
from Element.offsetWidth, but I've no idea why.
Any idea will be appreciated.
Regards
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel