[Laszlo-dev] must we restrict the debugger width to the canvas width?
P T Withington
ptw at pobox.com
Mon Jun 22 14:10:20 PDT 2009
Interesting. I didn't know you could do that.
Here's my concern: If a naive user (like myself) says:
and you make your change, won't I end up with a debugger window where
I can't get to the resize tab so I can't make it fit on my window?
There's a boatload of heuristics going on here to make the debugger
window size as useful as possible, and I'd want to make sure we didn't
break any of those. In particular, look at the history of this bug
for an example of how dangerous what looks like a simple change can be:
So, I'm pretty leery of your proposed change.
Why can't you just have the canvas be 100% and then set the actual
size using the embed tag?
On 2009-06-22, at 15:45EDT, Sarah Allen wrote:
> If you have a larger width in the embed tag, you can test an app in
> a larger canvas area than the canvas declares. It is likely not
> intentional, but it is very useful. I often develop small LZX apps
> embedded in a website, but for testing I embed them in larger area
> of test files. It is good that the canvas stays the same size, so
> the app isn't distorted when I'm debugging -- the larger debugger is
> On Jun 22, 2009, at 12:39 PM, P T Withington wrote:
>> I'm not sure what you are asking. If you make the debugger wider
>> than the canvas, doesn't it just get clipped? How is that useful?
>> On 2009-06-21, at 17:57EDT, Sarah Allen wrote:
>>> I'd like to change this line in debugger.lzx:
>>> super.setAttribute('width', Math.max( 170 , Math.min( w ,
>>> canvas.width) ) );
>>> super.setAttribute('width', Math.max( 170 , w ) );
>>> I've done this locally, since I am working with a somewhat narrow
>>> video player and I just stick it into a test html with a larger
>>> width than is defined on teh canvas, so it looks just like it does
>>> on the real site, but I can develop with a larger debugger window.
>>> If no one objects (and someone else approves) I'll file a bug and
>>> check it in. (I can also do the same for the height although it
>>> is not as important)
More information about the Laszlo-dev