On Thursday 05 January 2006 17:37, Jason Tackaberry wrote:
> > I find the latter more natural (and very useful, too) - how about
> > allowing simple expressions as values, then one could write "100% - 10"
> > to simulate the first.  I know, this is extra work to implement, but it's
> > certainly something I missed several times in HTML/CSS.
>
> This is something I had originally allowed in kaa.canvas,
Ah, cool!
> but removed 
> it.  Simple expressions that allow you to mix relative and fixed values
> like in your example might be ok.  Once you have basic support for
> expressions, there's a temptation to keep expanding on it, until what
> you have is intractable. :)
Right, and a simple Python "eval" is dangerous, too...

> Now that I think about it, though, right="100%-10" might be better than
> right=-10, because the latter approach means different semantics for
> negative values for the various position properties.
Even worse, "left=-200 top=-200" for adding a fixed-size logo to the bottom 
right might be as probable as the same attributes for shifting something out 
of the screen to the top/left..

> > How about a "visible" property?  Then Freevo can use the extra condition
> > attributes (canvas.xml could store them without looking at them) and
> > conditionally hide/show canvas elements.
>
> There is one, and it works just like the visibility property in css
> inasmuch as the object still influences its parent's size and reflow.
> What you'd really want is something like "display: none".
Yes (I was thinking about the "visible" property of Qt widget..)

I am looking forward to all that! (and some time for hacking myself..)
  Hans


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to