Does anyone remember what the size_blank_to_zero quirk was created for?
I'm trying to fix http://jira.openlaszlo.org/jira/browse/LPP-9549
The only place that the zero height/width quirk is used seems to be in
LzSprite.setWidth/Height , where
the div's CSS width height get zeroed out.
e.g.,
LzSprite.prototype.setWidth = function ( w ) {
if (w < 0 || this.width == w) return;
//Debug.info('setWidth', w);
this.width = w;
w = this.CSSDimension(w);
if (this._w != w) {
this._w = w;
var size = w;
var quirks = this.quirks;
// set size to zero if we don't have either of these
if (quirks.size_blank_to_zero) {
if (this.bgcolor == null && this.source == null && ! this.clip
&& ! (this instanceof LzTextSprite) && ! this.shadow && ! this.borderwidth)
{
this.__sizedtozero = true;
size = 0;
}
}
*this.applyCSS('width', size);*
--
Henry Minsky
Software Architect
[email protected]