[Project_owners] "x" to close nsIAlertsSevice.showAlertNotification()?

eric.jung at yahoo.com eric.jung at yahoo.com
Mon Feb 12 11:04:04 PST 2007


>> http://pastebin.mozilla.org/3603
>Please inline the code for archival purposes.

<?xml-stylesheet href="chrome://global/skin/alerts/alert.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://foxyproxy/locale/foxyproxy.dtd">

<window id="alertNotification"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        windowtype="alert:alert"
        xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
        xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
        xhtml2:role="wairole:alert"
        align="start"
        onload="onFPAlertLoad()"> // this doesn't seem to have any effect
  
  <script type="application/x-javascript" src="chrome://foxyproxy/content/alert.js"/>
  <label id="alertTextLabel" class="alertText plain" style="width: 900px;"/>
  <script>window.onload = function() {onFPAlertLoad();}</script>
</window>

>Dunno, set the width of the window and have everything else flex.

I've changed the overlay to the following. There is no load handler anymore; in fact, no JS at all... just this overlay.  I still get the same result as the initial screenshot I posted (except 900 pixels instead of the 600 px I originally used). Note that I've changed the class attribute of all elements in case any of the classes in alert.css was the cause of the width restriction (although it doesn't appear to be).

I'm completely baffled how to get rid of this ellipsis.




<?xml-stylesheet href="chrome://global/skin/alerts/alert.css" type="text/css"?>
<!DOCTYPE overlay SYSTEM "chrome://foxyproxy/locale/foxyproxy.dtd">

  
<window id="alertNotification"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
         windowtype="alert:alert"
         xmlns:xhtml2="http://www.w3.org/TR/xhtml2"
         xmlns:wairole="http://www.w3.org/2005/01/wai-rdf/GUIRoleTaxonomy#"
         xhtml2:role="wairole:alert"
         align="start"
         onload="onAlertLoad()"
         style="width: 900px;">
  <script src="chrome://foxyproxy/content/alert.js"/>

  <hbox id="alertBox" class="" flex="1">
    
    <hbox class="" align="center" valign="center">
      <image id="alertImage"/>
    </hbox>

    <vbox id="alertTextBox" class="" flex="1">
      <label id="alertTitleLabel" class=""/>
      <label id="alertTextLabel" class="" onclick="onAlertClick();" flex="1"/>
    </vbox>

  </hbox>  
</window>  
</overlay>




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20070212/480e20b7/attachment-0001.html 


More information about the Project_owners mailing list