Scanning through the source, it looks like it's actually hardcoded in GrowlWebKitWindowController.m at 270px. It can expand to accommodate larger windows, but 270px is the hardcoded minimum. For styles that don't explicitly define a width, they probably also use the 270px width, meaning changing that value in the future to accommodate smaller sizes would have the unfortunate side effect of shrinking all those styles.
The only solution I could think of for a future version is if the initial display width could be overridden with an optional value from the bundle's Info.plist, similar to the GrowlPadding implementation. Unfortunately, I know far too little about XCode to be able to figure out the code snippet (if I did, I wouldn't be using WebKit to make the plugins!) What it comes down to is whether or not it's possible to either a) move the initialization of the window to after the Info.plist values are read, and it is initialized with either the default value or the optional value from Info.plist, OR to b) shrink the window if the optional Info.plist value exists, after it has already been initialized. The second option seems like a simpler change, but I just don't know enough about XCode to know if changing the min-width of a panel is a straightforward operation or not. On Jan 31, 9:30 pm, Peter Hosey <[email protected]> wrote: > On Jan 31, 2010, at 15:36:59, Imaria wrote: > > > Is there a way to make Growl accept an html/css based notification > > at less than 300px width? > > I'm having trouble figuring out how the WebKit display sets the window > size, but it seems like it should Just Work depending on the size of > the document. How are you setting that? > > (Incidentally, I did find that the window size is initialized to 1 > screen pixel tall, and is changed later. So, those who've seen a 1- > pixel-tall notification window: It would seem that that notification > window somehow didn't get its size changed. I don't know why.) -- You received this message because you are subscribed to the Google Groups "Growl Discuss" 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/growldiscuss?hl=en.
