Google Desktop uses a custom rendering engine and while the elements are called "div" they are not to be confused with HTML divs. No element in Google Desktop will auto-resize and neither do they have padding (or any other CSS attributes). A div element is used as a container which is positioned relative to its parent at a set width and height. If you need to adjust sizes of your elements based on content you need to calculate the necessary size yourself by using the idealBoundingRect attribute of the edit element which will return the width and height needed to fully display a text. See http://code.google.com/apis/desktop/docs/releasenotes-v55.html#s10 for details.
Benjamin On Apr 27, 8:38 am, "[email protected]" <[email protected]> wrote: > * see in 'Fixed text' mode > I think that parent DIV element with not setted width should calculate > its width from width of it's child elements: > > Outer border is div and inner one is label, for example with width 0 - > div width should be the same. > ╔╗ > ║║ > ╚╝ > If width of label has been changed then width of DIV should be changed > too to the same value (if all paddings are zero) > ╔═══════════╗ > ║bla-bla-bla║ > ╚═══════════╝ > > On Apr 25, 11:19 pm, Teo <[email protected]> wrote: > > > Hi, > > > could you be more detailed? > > > In case you want the div to be of the same width as the parent you can > > do: width="100%" > > > Thanks, > > Teo > > > On Apr 24, 12:58 pm, "[email protected]" <[email protected]> wrote: > > > > Oops, sorry. I something forgot. > > > > Why div element does not fit it's child? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Desktop Developer Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Desktop-Developer?hl=en -~----------~----~----~----~------~----~------~--~---
