+ Fixed: Bug 577164 - 0 height body leaving feedback and reset buttons stranded?

This commit is contained in:
Ian Gilman 2010-07-14 15:17:28 -07:00
parent 0896f3fae1
commit 1626f53a85
3 changed files with 27 additions and 9 deletions

View File

@ -567,7 +567,7 @@ window.Page = {
// ##########
// Class: UIClass
// Singleton top-level UI manager. TODO: Integrate with <Page>.
function UIClass(){
function UIClass() {
try {
Utils.log('TabCandy init --------------------');
@ -596,6 +596,8 @@ function UIClass(){
// ----------
UIClass.prototype = {
// ----------
// Function: init
// Must be called after the object is created.
init: function() {
try {
if (window.Tabs)
@ -612,6 +614,9 @@ UIClass.prototype = {
},
// -----------
// Function: _secondaryInit
// This is the bulk of the initialization, kicked off automatically by init
// once the system is ready.
_secondaryInit: function() {
try {
var self = this;
@ -658,7 +663,7 @@ UIClass.prototype = {
// ___ delay init
Storage.onReady(function() {
self.delayInit();
self._delayInit();
});
} catch(e) {
Utils.log(e);
@ -666,7 +671,9 @@ UIClass.prototype = {
},
// ----------
delayInit : function() {
// Function: _delayInit
// Called automatically by _secondaryInit once sessionstore is online.
_delayInit : function() {
try {
// ___ Storage
let currentWindow = Utils.getCurrentWindow();
@ -980,11 +987,12 @@ UIClass.prototype = {
var $select = iQ('<select>')
.css({
position: 'absolute',
top: 5,
bottom: 5,
right: 5,
zIndex: 99999,
opacity: .2
})
.appendTo('body')
.appendTo('#content')
.change(function () {
var index = iQ(this).val();
try {

View File

@ -12,6 +12,14 @@ body {
margin: 0 auto;
}
#content {
position:absolute;
top:0;
left:0;
width: 100%;
height: 100%;
}
#bg {
background: -moz-linear-gradient(top,#C4C4C4,#9E9E9E);
position:absolute;
@ -424,7 +432,7 @@ input.defaultName:hover{
width: 100px;
height: 20px;
line-height: 20px;
z-index: 99 !important;
z-index: 99999 !important;
background-color: blue;
text-align: center;
color: white;

View File

@ -10,10 +10,12 @@
</head>
<body style="background-color: transparent !important;-moz-appearance: none !important;" transparent="true">
<div id="feedback" class="bottomButton">give feedback</div>
<div id="reset" class="bottomButton">reset</div>
<div id="content">
<div id="feedback" class="bottomButton">give feedback</div>
<div id="reset" class="bottomButton">reset</div>
</div>
<div id="bg" />
<script type="text/javascript;version=1.8" src="tabcandy.js"></script>
</body>