stereoket
22 Sep 2010, 4:20 PM
I just posted a queston on Stack Overflow relating to this:
http://stackoverflow.com/questions/3774530/sencha-fullscreen-panel-that-detects-home-screen-bookmark
I'm new to Ext & Sencha Touch, so i'm on a learning curve.
The issue is that when I create a panel that is full screen - it sits under the search box in the browser as expected, except that when i Add the page to Home Screen, the fullsized panel ignores the status bar at the top and floats underneath it.
http://img.skitch.com/20100923-tb7b4frbkm2eskud44c99brwkc.jpg
Code in my onReady function:
var buttons = [
{text: 'Button'},
{xtype: 'spacer'},
{text: 'Blue', ui: 'action'},
];
var toolbar1 = new Ext.Toolbar({
dock: 'top',
title: 'Panel',
items: buttons
});
var windowHeight = Ext.Element.getViewportHeight();
var windowWidth = Ext.Element.getViewportWidth();
var homePage = new Ext.Panel ({
fullscreen: true,
cls: 'homePage',
dockedItems: [toolbar1],
layout: 'fit',
html: '<h2>Testing Ext.js Panel</h2><p>Height:' + windowHeight +'</p><p> Width:' + windowWidth +'</p>',
animation: 'slide'
});
Is there a way of dealing with this within SenchaTouch, or is it a bug?
http://stackoverflow.com/questions/3774530/sencha-fullscreen-panel-that-detects-home-screen-bookmark
I'm new to Ext & Sencha Touch, so i'm on a learning curve.
The issue is that when I create a panel that is full screen - it sits under the search box in the browser as expected, except that when i Add the page to Home Screen, the fullsized panel ignores the status bar at the top and floats underneath it.
http://img.skitch.com/20100923-tb7b4frbkm2eskud44c99brwkc.jpg
Code in my onReady function:
var buttons = [
{text: 'Button'},
{xtype: 'spacer'},
{text: 'Blue', ui: 'action'},
];
var toolbar1 = new Ext.Toolbar({
dock: 'top',
title: 'Panel',
items: buttons
});
var windowHeight = Ext.Element.getViewportHeight();
var windowWidth = Ext.Element.getViewportWidth();
var homePage = new Ext.Panel ({
fullscreen: true,
cls: 'homePage',
dockedItems: [toolbar1],
layout: 'fit',
html: '<h2>Testing Ext.js Panel</h2><p>Height:' + windowHeight +'</p><p> Width:' + windowWidth +'</p>',
animation: 'slide'
});
Is there a way of dealing with this within SenchaTouch, or is it a bug?