[Project_owners] Dialog/Window resizing

Michael Johnston special.michael at gmail.com
Thu Oct 6 14:57:20 EDT 2005


i apologuise for my extreme inability to type

<hbox>
  <spacer flex="1"/>
  <button  id="something"
         label="cancel"
         oncommand="return my_on_cancel_call();"/>

</hbox>


On 10/6/05, Michael Johnston <special.michael at gmail.com> wrote:
> the onaccept / oncancel shouldn't be hard.
> just add two buttons to the bottom of your xul with their oncommand to
> do the same thing.
>
>
> <hbox>
>    <spacer flex="1"/>
>    <button  id="somehting" lable="cancel" oncommand="return
> my_on_cancel_call();"/>
>
> </hbox>
>
> On 10/6/05, Paul Tomlin <paul at paultomlin.com> wrote:
> > I've got an ongoing issue with Quick File where the #1 bug/query is
> > about the folder name not fitting into the textbox in the dialog. The
> > dialog is in fact resizable, but most people don't appear to realise this.
> >
> > Apart from writing a FAQ about it, there are a couple of things I think
> > I could do to stop this battering of my inbox with the same query.
> >
> > I've been told that "dialogs are not meant to be resizable" so the
> > resize handle on a <dialog /> appears above the OK/Cancel buttons, which
> > is the primary reason I have not included one previously.
> >
> > I know I can re-implement the dialog as a <window /> but then I'd have
> > to also deal with the OK/Cancel handling. Not too sure how much work
> > this would entail.
> >
> > I'd also like to be able to restrict resizing to horizontal only. The
> > dialog in question only has a textfield and the normal OK/Cancel, so
> > resizing vertically seems a little pointless. In the past I've tried
> > max-height and some other CSS tricks, but nothing worked as intended.
> >
> > So, I guess my query is, does anyone have any insight into making it
> > clear a <dialog /> is resizable, or how to re-implement dialog
> > onaccept/oncancel type stuff for a <window />? Also, how do I restric
> > resizing to horizontal only, taking into account any local
> > settings/styles the user might have which alter the initial height of
> > the dialog?
> >
> > If you want an example then there's a screenshot on mozdev
> > http://quickfile.mozdev.org/screenshots.html
> > _______________________________________________
> > Project_owners mailing list
> > Project_owners at mozdev.org
> > http://mozdev.org/mailman/listinfo/project_owners
> >
>


More information about the Project_owners mailing list