PDA

View Full Version : [OPEN-517] Overlay issue in version 0.98 & 0.99



fermina
4 Nov 2010, 7:20 PM
Hi

I posted about this problem before, but nobody give me an answer.
so I'm posting again.
Problem below is still remain in version 0.99 and overlay sample that Sencha providing.

http://dev.sencha.com/deploy/touch/examples/overlays/
http://www.sencha.com/forum/showthread.php?114393-Overlay-issue-in-version-0.98.

Also same problem is founded in other Android device(Motoroi).
Problem is like this.
After click the button at the top to launch the overlay, the screen is not working. (Android 2.1 & Samsung Galaxy S)
Please, help me!
The code is shown below.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title id="title">Loading test</title>
<link rel="stylesheet" href=".../../resources/css/sencha-touch.css" type="text/css">
<script type="text/javascript" src="../../ext-touch-debug.js"></script>
<script type="text/javascript">
Ext.setup({
onReady: function() {

var topBar = new Ext.Toolbar({
dock: 'top',
title: 'test',
items: [{
text: 'overlay',
handler: function(btn) {
overlay.showBy(btn);
}
}]
});

var overlay = new Ext.Panel({
floating: true,
modal: true,
centered: false,
width: Ext.is.Phone ? 260 : 400,
height: Ext.is.Phone ? 220 : 400,
html: '<span style="font-weight:bold;">test</span>'
});

var btnTap = function(btn, event) {
overlay.setCentered(false);
overlay.showBy(btn);
}

var bottomBar = new Ext.Toolbar({
dock: 'bottom',
items: [{
text: '1111',
handler: function(btn) {
alert(btn.text + ' click');
}
}, {
text: '2222',
handler: function(btn) {
alert(btn.text + ' click');
}
}]
});

var subPanel = new Ext.Carousel({
});

var mainPanel = new Ext.Panel({
dockedItems:[topBar, bottomBar],
fullscreen: true,
layout: 'card',
items: [subPanel]
});
}
});
</script>
</head>
<body></body>
</html>

BrendanC
5 Nov 2010, 10:48 AM
Thanks for the bug report.

Jacky Nguyen
8 Nov 2010, 5:37 PM
I'm currently investigating on this strange issue and will get back to you asap