Mercurial > libervia-web
diff src/browser/sat_browser/base_widget.py @ 619:11a0a32144a5 frontends_multi_profiles
browser_side: show more obvisouly the "dragover" style when dragging something over a tab
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 20 Feb 2015 19:50:00 +0100 |
parents | 698bdb84f6a7 |
children | ac5881d683d3 |
line wrap: on
line diff
--- a/src/browser/sat_browser/base_widget.py Fri Feb 20 19:37:54 2015 +0100 +++ b/src/browser/sat_browser/base_widget.py Fri Feb 20 19:50:00 2015 +0100 @@ -761,18 +761,18 @@ def onDragEnter(self, event): #if self == LiberviaDragWidget.current: # return - self.addStyleName('dragover') + self.parent.addStyleName('dragover') DOM.eventPreventDefault(event) def onDragLeave(self, event): - self.removeStyleName('dragover') + self.parent.removeStyleName('dragover') def onDragOver(self, event): DOM.eventPreventDefault(event) def onDrop(self, event): DOM.eventPreventDefault(event) - self.removeStyleName('dragover') + self.parent.removeStyleName('dragover') if self._getIndex() == self.tab_panel.tabBar.getSelectedTab(): # the widget come from the DragTab, so nothing to do, we let it there return