[Zope-CVS] CVS: Products/CompositePage - slot.py:1.8

Shane Hathaway shane at zope.com
Fri Dec 26 14:01:04 EST 2003

Update of /cvs-repository/Products/CompositePage
In directory cvs.zope.org:/tmp/cvs-serv28907

Modified Files:
Log Message:
Fixed the two Internet Explorer bugs.

First, IE failed to produce events for some blocks in table cells that
had no text content.  Adding a floating, empty <div> in each slot
seems to have cleared up the problem for now, since the floating divs
affect the layout algorithm in some inexplicable way.  (I could only
fix this for real if I had access to the IE source code.)

Second, drag and drop didn't work when dragging an image.  Fixed by
using Microsoft's Javascript API for drag and drop.  I'm actually pretty
happy with this API--it's too bad other browsers don't use it.

=== Products/CompositePage/slot.py 1.7 => 1.8 ===
--- Products/CompositePage/slot.py:1.7	Mon Dec 22 15:21:14 2003
+++ Products/CompositePage/slot.py	Fri Dec 26 14:00:33 2003
@@ -128,7 +128,7 @@
     def renderToList(self, allow_add):
         """Renders the items to a list.
-        res = []
+        res = ['<div class="slot_header"></div>']
         composite = aq_parent(aq_inner(aq_parent(aq_inner(self))))
         editing = composite.isEditing()
         items = self.objectItems()

More information about the Zope-CVS mailing list