[OPEN-1289] Very horizontally long window with buttons
Ext version tested: Adapter used: css used: Browser versions tested against: - IE6
- IE7
- IE8
- FF3.6.10 (firebug 1.5.4 installed)
- Safari 5.0.1
- Chrome 6.0.472.63
Operating System: Description: - In Webkit browsers, Sometimes very horizontally long (> 10000px) window with buttons is shown.
Test Case:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Window Test</title>
<link rel="stylesheet" type="text/css" href="lib/ext.js/resources/css/ext-all.css"/>
<script type="text/javascript" src="lib/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="lib/ext.js/adapter/jquery/ext-jquery-adapter-debug.js"></script>
<script type="text/javascript" src="lib/ext.js/ext-all-debug-w-comments.js"></script>
<script type="text/javascript">
Ext.onReady(function() {
new Ext.Window({
modal: true,
title: 'test',
buttons: ['OK', 'Cancel'],
html: 'Test'
}).show();
});
</script>
<body>
</body>
</html>
Steps to reproduce the problem: - Using Chrome or Safari, Execute above html.
The result that was expected: The result that occurs instead: - Long long long long window will be shown.
Possible fix:
Below css code insert.
Code:
<style type="text/css">
.x-window .x-toolbar-left {
width: auto;
}
</style>
or remove .x-toolbar-left{width:100%;} from ext-all.css(line 1863-1865)