[ZCM] [ZC] 531/ 6 Comment "Page template body textarea width under Opera 6"

Collector: Zope Bugs, Features, and Patches ... zope-coders@zope.org
Thu, 22 Aug 2002 13:02:51 -0400


Issue #531 Update (Comment) "Page template body textarea width under Opera 6"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/531

==============================================================
= Comment - Entry #6 by gotcha on Aug 22, 2002 1:02 pm

> = Comment - Entry #5 by Caseman on Aug 22, 2002 12:03 pm
> 
> Regardless of whether it fixes Opera, cols="100%" is not legal HTML.

I agree and was surprised to see it generated for DTML and preferences.

But what is nice is that it is working... and I have seen no complaints that it would disturb other browsers.

So 

- or we remove it also for DTML and preferences (for sake of coherence)

- or we add it to Page Templates and we get a working thing under Opera 6 also (which I prefer)

- or we correct DTML and preferences to cols="80" and add it to Page Templates

________________________________________
= Comment - Entry #5 by Caseman on Aug 22, 2002 12:03 pm

Regardless of whether it fixes Opera, cols="100%" is not legal HTML. However setting cols to a fixed value (such as 80) might be OK.

My personal recommendation is to just use absolute widths with Opera which can be set by omitting the percent sign in the width setting in the ZMI preferences. However adding something like cols="80" might at least make it usable otherwise.

Let me know if that change will work for you.


________________________________________
= Comment - Entry #4 by gotcha on Aug 22, 2002 10:21 am

I am afraid it is NOT resolved :

I just browsed the CVS to the ptEdit.zpt and I did not find that in case of relative width the textarea has BOTH style and cols attributes.

> 
> Reason : the style attribute for the textarea (width:100%) does not seem
>   to be supported and the cols="100%" which is present in similar
>   situations for DTML or "set preferences" is not produced
> 

As I told before, in 2.5.1, "DTML document edit" and "set preferences" textareas have both attributes, this works for at least Opera 6.0 Mozilla 1.0 and IE 5.0 I have on my machine.

On the other hand, style only as in Page template textarea is NOT working for Opera 6.0

________________________________________
= Resolve - Entry #3 by Caseman on Aug 22, 2002 9:48 am

 Status: Pending => Resolved

This has already been fixed in Zope 2.6. Widths can be specified as relative or absolute.

See: http://collector.zope.org/Zope/147
________________________________________
= Comment - Entry #2 by gotcha on Aug 22, 2002 9:40 am

Sorry, should be bug+solution category.

________________________________________
= Request - Entry #1 by gotcha on Aug 22, 2002 9:35 am


Uploaded:  "ptEdit.zpt"
 - http://collector.zope.org/Zope/531/ptEdit.zpt/view
Problem : under Opera 6.0, if the preferred width is relative, the width of the page template body textarea is very small and cannot be tuned with the narrower - wider buttons.

Reason : the style attribute for the textarea (width:100%) does not seem to be supported and the cols="100%" which is present in similar situations for DTML or "set preferences" is not produced

I include a corrected ptEdit.zpt. 

BTW, could I check it myself in the Zope 2.6 CVS, I am Zope 3 contributor but do not know if I have rights for Zope 2.
==============================================================