diff browser_side/panels.py @ 43:a7ff1e6f1229

browser_side: prevent default for escape key (cancel HTTPRequest in FF)
author Goffi <goffi@goffi.org>
date Wed, 25 May 2011 14:21:48 +0200
parents 305e81c7a32c
children 153de5d461a4
line wrap: on
line diff
--- a/browser_side/panels.py	Mon May 23 00:45:19 2011 +0200
+++ b/browser_side/panels.py	Wed May 25 14:21:48 2011 +0200
@@ -28,7 +28,6 @@
 from pyjamas.ui.ScrollPanel import ScrollPanel
 from pyjamas.ui.TabPanel import TabPanel
 from pyjamas.ui.HTMLPanel import HTMLPanel
-from pyjamas.ui.PopupPanel import PopupPanel
 from pyjamas.ui.Grid import Grid
 from pyjamas.ui.AutoComplete import AutoCompleteTextBox
 from pyjamas.ui.MenuBar import MenuBar
@@ -51,7 +50,7 @@
 from tools import html_sanitize
 from datetime import datetime
 from time import time
-from dialog import ContactsChooser
+from dialog import ContactsChooser, PopupPanelWrapper
 
 class MenuCmd:
 
@@ -246,7 +245,7 @@
             return
         contents = HTML(msg)
 
-        self._popup = PopupPanel(autoHide=False, modal=False)
+        self._popup = PopupPanelWrapper(autoHide=False, modal=False)
         self._popup.target_data = target_data
         self._popup.add(contents)
         self._popup.setStyleName("warningPopup")
@@ -634,9 +633,6 @@
         self.host=host
         AbsolutePanel.__init__(self)
 
-        #self.setHorizontalAlignment(HasAlignment.ALIGN_LEFT)
-        #self.setVerticalAlignment(HasAlignment.ALIGN_TOP)
-
         menu = Menu(host)
         unibox_panel = UniBoxPanel(host)
         self.host.setUniBox(unibox_panel.unibox)
@@ -652,12 +648,9 @@
         self.add(self.tab_panel)
         
         self.setWidth("100%")
-        #self.setHeight("99%")
         Window.addWindowResizeListener(self)
 
     def onWindowResized(self, width, height):
-        print "resizing: %s %s" % (width, height)
-        #self.setWidth("%s%s" % (width, "px"));
         _elts = doc().getElementsByClassName('gwt-TabBar')
         if not _elts.length:
             tab_bar_h = 0