On 2/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> I have another, related question. I'm trying to increase the width of the
> nsIAlertsService alert box. I've been able to increase the width of the box,
> but not the width of the <label/> inside. It keeps clipping the text and
> adding ellipses ("...") if the text is beyond a certain width. I'm about the
> re-implement the entire service simply for a wider box, but I thought I'd
> ask for help first.
>
> Here's a screenshot of what I have so far:
> http://img513.imageshack.us/img513/3104/capnw2.png
>
> Here's my source code. I'm overlaying
> chrome://global/content/alerts/alert.xul.
> http://pastebin.mozilla.org/3588
>

That's a weird overlay. Do you overlay or override alert.xul?

The style setting width explicitly on the label looks very wrong. I
suggest looking at the style rules and the computed style for the
label and its parent elements.

Nickolay

> References:
> http://lxr.mozilla.org/mozilla1.8.0/source/toolkit/components/alerts/resources/content/alert.xul
> http://lxr.mozilla.org/mozilla1.8.0/source/toolkit/components/alerts/resources/content/alert.js
> http://lxr.mozilla.org/mozilla1.8.0/source/toolkit/themes/winstripe/global/alerts/alert.css
> (I think?)
>
> Thanks for any ideas,
> Eric
>
>
> ----- Original Message ----
> From: Nickolay Ponomarev <[EMAIL PROTECTED]>
> To: Mozdev Project Owners List <[email protected]>
> Sent: Friday, January 19, 2007 2:30:49 AM
> Subject: Re: [Project_owners] "x" to close
> nsIAlertsSevice.showAlertNotification()?
>
> Easy, just overlay chrome://global/content/alerts/alert.xul
>
> fwiw, a year ago I wrote a patch making the notification go away on
> click, but it didn't go any further.
>
> Nickolay
>
> On 1/18/07, Eric H. Jung <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > Does anyone know how to add an "x" to
> > nsIAlertsSevice.showAlertNotification() so it can be
> closed
> > by the user quicker than the default sliding/hiding mechanism? Has anyone
> > seen an extension which does this (I'm fairly certain I've seen them, just
> > can't remember which one(s)...)
> >
> > Thanks,
> > Eric
> >
> >
> > _______________________________________________
> > Project_owners mailing list
> > [email protected]
> > http://mozdev.org/mailman/listinfo/project_owners
> >
> >
> >
> _______________________________________________
> Project_owners mailing list
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
>
>
> _______________________________________________
> Project_owners mailing list
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
>
>
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to