|
Check-in Number:
|
439 | |
| Date: |
2009-Sep-27 19:04:47 (local)
2009-Sep-28 02:04:47 (UTC) |
| User: | majid |
| Branch: | |
| Comment: |
fix positioning of popup menus when the positioned container (e.g. body) is
not aligned with the viewport |
| Tickets: |
|
| Inspections: |
|
| Files: |
|
temboz/pages/temboz_css.tmpl 1.26 -> 1.27
--- /tmp/T0_Fay6Y Mon Sep 6 17:59:08 2010
+++ /tmp/T1aGay6Y Mon Sep 6 17:59:08 2010
@@ -115,9 +115,19 @@
}
div.popup ul {
list-style-type: none;
- margin: 6px;
+ margin-top: 6px;
+ margin-bottom: 6px;
padding: 0;
}
+div.popup ul hr {
+ width: 100%;
+ border-left: 0px;
+ border-right: 0px;
+}
+div.popup ul li {
+ padding-left: .5em;
+ padding-right: .5em;
+}
div.popup li:hover {
background-color: #BFFF80;
}
@@ -158,6 +168,15 @@
padding-left: 20px;
padding-right: 20px;
}
+div#settings {
+ padding-top: 20px;
+}
+div#settings div.ui-tabs-panel {
+ padding: 20px;
+}
+div#settings div.ui-tabs-panel td {
+ padding: 6px;
+}
.col1 .article {
margin-left: 20px;
margin-right: 10px;
temboz/rsrc/specific.js 1.2 -> 1.3
--- /tmp/T0pGaa7Y Mon Sep 6 17:59:08 2010
+++ /tmp/T1qGaa7Y Mon Sep 6 17:59:08 2010
@@ -15,9 +15,6 @@
/* pop-up menus */
function place_popup() {
var popup = $("div#popup_" + this.id);
- var callout_pos = $(this).position();
- popup.css("left", callout_pos.left);
- popup.css("top", callout_pos.top + $(this).height() + 3);
this.popup = popup;
}
function hide_popups() {
@@ -26,6 +23,12 @@
}
function show_popup(event) {
event.stopPropagation();
+
+ var callout = $(this).offset();
+ var container = $(this).offsetParent().offset();
+ this.popup.css("left", callout.left - container.left);
+ this.popup.css("top", callout.top - container.top + $(this).height() + 3);
+
this.popup.toggle();
$(document).click(hide_popups);
}
temboz/server.py 1.43 -> 1.44
--- /tmp/T0YGaO7Y Mon Sep 6 17:59:08 2010
+++ /tmp/T1ZGaO7Y Mon Sep 6 17:59:08 2010
@@ -1,5 +1,5 @@
#!/usr/local/bin/python
-# $Id: server.py,v 1.43 2009/09/26 08:44:57 majid Exp $
+# $Id: server.py,v 1.44 2009/09/28 02:04:47 majid Exp $
import sys, os, stat, logging, base64, time, imp, gzip, imp
import BaseHTTPServer, SocketServer, cStringIO, urlparse, urllib
import param, update, filters, util
@@ -265,7 +265,7 @@
images[fn] = open('images/' + fn).read()
rsrc = {}
for fn in [fn for fn in os.listdir('rsrc')
- if fn.endswith('.js')]:
+ if fn.endswith('.js') and not fn.startswith('.')]:
rsrc[fn] = open('rsrc/' + fn).read()
def favicon(self):
self.browser_output(200, 'image/x-icon', self.images['favicon.ico'],