comparison browser_side/richtext.py @ 425:19bd203daa27

browser_side: set microblog editor width to 80%
author souliane <souliane@mailoo.org>
date Wed, 26 Mar 2014 13:39:08 +0100
parents 9977de10b7da
children 8ecc5a7062e4
comparison
equal deleted inserted replaced
424:4ba4b099d266 425:19bd203daa27
159 self.wysiwyg_button.addClickListener(wysiywgCb) 159 self.wysiwyg_button.addClickListener(wysiywgCb)
160 self.toolbar.add(self.wysiwyg_button) 160 self.toolbar.add(self.wysiwyg_button)
161 self.syntax_label = Label(_("Syntax: %s") % syntax) 161 self.syntax_label = Label(_("Syntax: %s") % syntax)
162 self.syntax_label.addStyleName("richTextSyntaxLabel") 162 self.syntax_label.addStyleName("richTextSyntaxLabel")
163 self.toolbar.add(self.syntax_label) 163 self.toolbar.add(self.syntax_label)
164 self.toolbar.setCellWidth(self.syntax_label, "100%")
164 self.getFlexCellFormatter().setColSpan(self.toolbar_offset + count, 0, 2) 165 self.getFlexCellFormatter().setColSpan(self.toolbar_offset + count, 0, 2)
165 self.setWidget(self.toolbar_offset + count, 0, self.toolbar) 166 self.setWidget(self.toolbar_offset + count, 0, self.toolbar)
166 count += 1 167 count += 1
167 168
168 def setWysiwyg(self, wysiwyg, init=False): 169 def setWysiwyg(self, wysiwyg, init=False):