overflow: (Re: HTML for KMail ...)
Vadim Plessky
lucy-ples at mtu-net.ru
Mon Jul 22 07:18:31 BST 2002
On Friday 19 July 2002 8:26 pm, Marc Mutz wrote:
| On Friday 19 July 2002 17:14, Vadim Plessky wrote:
| > On Friday 19 July 2002 6:22 pm, Marc Mutz wrote:
| > | On Friday 19 July 2002 15:22, Vadim Plessky wrote:
| > | <snip>
| > |
| > | > So, would it be incorporated into KMail's CSS for heders?
| > | > Or there is a chance to use pure XML?..
| > |
| > | <snip>
| > |
| > | See my previous mail. XML is totally out of the question, since we
| > | need to inline HTML content, because of the missing <object>
| > | functionality in khtml.
| >
| > Ok, now I see: <object> is the real problem in KHTML (not CSS, not
| > Tables)
|
| <snip>
|
| Let's say it this way: For KMail, it would make things _a lot_ easier if
| <object width="100%"> would just insert a maximum width frame with the
I see small problem here.
AFAIK <object> is so-called *replaced element* in HTML, so userAgent
*reserves* some space on rendered page, than adjust size according to
<object> (replaced element) requirement.
// same is valid for <applet>, <img> and may be <form>
So, correct code for case of KMail can be:
1) insert <object>
ob = document.createElement("object")
2) get width/height of KMail window
let's say, it's w_width and w_height
3) resize <object> according to width and height.
ob.width=w_width;
ob.height=w_height;
I am not sure wether such code witll work in KHTML.
Last time I tried it (via JavaScript) - it was not working.
But this code should work via direct DOM calls.
BTW: my point is that we need to fix *right* thing at a *right* place.
| content. Esp. with another HTML page. This way, we'd just put every
| body part's content into an <object> of itself and be done with it:
| 1. It couldn't influcence our css rules
| 2. It could be hidden and shown with a simple DOM call
| 3. We wouldn't need to worry about the kind of data shown there, since
| khtml would sort it out for us.
|
| Maybe we should compile a KMail wishlist for khtml ;-)
|
| Marc
|
| - --
| Marc Mutz <mutz at kde.org>
--
Vadim Plessky
http://kde2.newmail.ru (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/
More information about the kfm-devel
mailing list