ポップアップの幅と高さをクリアするように(ツールチップ等の大きさが意図せず固定されてしまう問題への対処)
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6657 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
7ae995270d
commit
800ceed58c
@ -12,7 +12,7 @@
|
|||||||
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/stopRendering.js
|
http://www.cozmixng.org/repos/piro/fx3-compatibility-lib/trunk/stopRendering.js
|
||||||
*/
|
*/
|
||||||
(function() {
|
(function() {
|
||||||
const currentRevision = 4;
|
const currentRevision = 5;
|
||||||
|
|
||||||
if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {};
|
if (!('piro.sakura.ne.jp' in window)) window['piro.sakura.ne.jp'] = {};
|
||||||
|
|
||||||
@ -62,8 +62,17 @@
|
|||||||
if (aPopup.state != 'open') return;
|
if (aPopup.state != 'open') return;
|
||||||
var w = aPopup.boxObject.width;
|
var w = aPopup.boxObject.width;
|
||||||
var h = aPopup.boxObject.height;
|
var h = aPopup.boxObject.height;
|
||||||
|
var hasWidth = aPopup.hasAttribute('width');
|
||||||
|
var hasHeight = aPopup.hasAttribute('height');
|
||||||
aPopup.sizeTo(w, h-1);
|
aPopup.sizeTo(w, h-1);
|
||||||
aPopup.sizeTo(w, h);
|
aPopup.sizeTo(w, h);
|
||||||
|
if (!hasWidth || !hasHeight)
|
||||||
|
window.setTimeout(function() {
|
||||||
|
if (!hasWidth)
|
||||||
|
aPopup.removeAttribute('width');
|
||||||
|
if (!hasHeight)
|
||||||
|
aPopup.removeAttribute('height');
|
||||||
|
}, 0);
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user