Welcome Guest ( Log In | Register )


Recommended Addon
sponsored link
Sponsored link

> Another mini-howto available for translation
Goofy
post Jun 4 2007, 08:08
Post #1


Advanced Member
Group Icon

Group: Super Mod
Posts: 8.353
Joined: 30-July 05
From: GoofyLand
Member No.: 13


Extension Developer: Yes
Extensions: BabelZillaMenu-BabelZilla Glossary-OpenTran...
Translator for French (fr)
My OS Gnu/Linux
Translation Credits to Goofy



smile.gif
See here

How to resize a xul pref dialog according to every language


--------------------
Think Global, Make Locales!



You like languages? You should contribute to Tatoeba project!

Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Goofy
post Jun 6 2007, 21:34
Post #2


Advanced Member
Group Icon

Group: Super Mod
Posts: 8.353
Joined: 30-July 05
From: GoofyLand
Member No.: 13


Extension Developer: Yes
Extensions: BabelZillaMenu-BabelZilla Glossary-OpenTran...
Translator for French (fr)
My OS Gnu/Linux
Translation Credits to Goofy



Thanks for these precisions smile.gif

Apart from the special modifications for auto pane and advanced pane, is it correct to say that
generally speaking
these additions :
CODE
onload="sizeToContent();
persist="screenX screenY width height'

are enough to make the prefwindow self-resize ?
(of course IF the stringbundle is at its place and IF there is no checkbox with label embedded as you mention).

Please tell me.


--------------------
Think Global, Make Locales!



You like languages? You should contribute to Tatoeba project!

Sometimes I am on irc://moznet/BabelZilla
but you can also drop a word in the shoutbox
Go to the top of the page
 
+Quote Post
teo
post Jun 6 2007, 23:27
Post #3


XUL Warrior & Layout Fakir
***

Group: BabelZillian Mods
Posts: 1.423
Joined: 25-August 05
Member No.: 122


Extension Developer: Yes
Extensions: Return Receipt Toolbar Button
Translator for Polish (pl)
Translation Credits to Leszek(teo)Życzkowski



QUOTE(Goofy @ Jun 6 2007, 22:34) [snapback]29712[/snapback]
Thanks for these precisions smile.gif

Apart from the special modifications for auto pane and advanced pane, is it correct to say that
generally speaking
these additions :
CODE
onload="sizeToContent();
persist="screenX screenY width height'

are enough to make the prefwindow self-resize ?
(of course IF the stringbundle is at its place and IF there is no checkbox with label embedded as you mention).

Please tell me.

No. Should be 'openWindow' or 'openDialog' with 'resizable" parameter in the .js file. Now is problem with options windows calling from Addons Manager on Windows platform. Addons Manager in Fx and Tb calling options windows without 'resizable'. I don't know why. I heard, was problem with this parameter, but when options dialog is opened from MR Tech Local Install or on *nix and Mac platforms all is OK.
Persist is only for remember named parameters. In this case place on the screen - screenX and screenY and for window size - width and height (if you open options window by Local Install or on the *nix and Mac platforms).
'sizeToContent' calling from .xul file is default parameter. You can insert this parameter inside .js file. In this case in the .xul file shouldn't be sizeToContent.


--------------------
Teo
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th May 2013 - 07:42
Bridged By IpbWiki: Integration Of Invision Power Board and MediaWiki © GlobalSoft