Force entry fields for URI elements to be left to right even in right-to-left chrome. Bug 157607, r=jag, sr=hewitt

This commit is contained in:
smontagu%netscape.com 2002-10-03 21:16:39 +00:00
Родитель 425a41124f
Коммит dd6cc75df8
28 изменённых файлов: 63 добавлений и 49 удалений

Просмотреть файл

@ -120,7 +120,7 @@
<spacer class="spacer"/>
<label value="&backgroundImage.label;" accesskey="&backgroundImage.accesskey;"/>
<hbox align="center">
<textbox id="BackgroundImageInput" oninput="ChangeBackgroundImage();" style="min-width: 23em" flex="1">
<textbox id="BackgroundImageInput" oninput="ChangeBackgroundImage();" style="min-width: 23em" flex="1" class="uri-element">
<observes element="backgroundImageData" attribute="disabled"/>
</textbox>
<button label="&chooseFile.label;" accesskey="&chooseFile.accesskey;"

Просмотреть файл

@ -120,7 +120,7 @@
<label control="BackgroundImageInput"
value="&backgroundImage.label;"
accesskey="&backgroundImage.accessKey;"/>
<textbox id="BackgroundImageInput" oninput="ChangeBackgroundImage()"
<textbox id="BackgroundImageInput" class="uri-element" oninput="ChangeBackgroundImage()"
tooltiptext="&backgroundImage.tooltip;" flex="1"/>
<hbox align="center">
<!-- from EdDialogOverlay.xul 'for' identifies the textfield to get URL from -->

Просмотреть файл

@ -70,7 +70,7 @@
<vbox id="LinkLocationBox">
<label control="hrefInput" accesskey="&LinkURLEditField.accessKey;" width="1">&LinkURLEditField.label;</label>
<menulist editable="true" id="hrefInput" style="min-width: 30em" oninput="ChangeLinkLocation();">
<menulist editable="true" id="hrefInput" style="min-width: 30em" class="uri-element" oninput="ChangeLinkLocation();">
<menupopup/>
</menulist>
<hbox align="center">

Просмотреть файл

@ -43,7 +43,7 @@
accesskey="&locationEditField.accessKey;"
tooltiptext="&locationEditField.tooltip;"
/>
<textbox id="srcInput" oninput="ChangeImageSrc();" tabindex="1"/>
<textbox id="srcInput" oninput="ChangeImageSrc();" tabindex="1" class="uri-element"/>
<hbox>
<checkbox
id = "MakeRelativeCheckbox"

Просмотреть файл

@ -47,7 +47,7 @@
<label id="srcMessage" value="&sourceEditField.label;"/>
<vbox flex="1" style="width: 30em; height: 20em;">
<textbox id="srcInput" multiline="true" rows="1" style="width: 1em" flex="1"/>
<textbox id="srcInput" multiline="true" rows="1" style="width: 1em" flex="1" class="uri-element"/>
</vbox>
<!-- Will this accept the embedded HTML tags? -->
<hbox>

Просмотреть файл

@ -82,7 +82,7 @@
<row align="center">
<label value="&filename.label;"/>
<textbox id="FilenameInput"
tooltiptext="&filename.tooltip;" class="minWidth15"/>
tooltiptext="&filename.tooltip;" class="minWidth15 uri-element"/>
<label value="&filenameExample.label;"/>
</row>
</rows>
@ -91,7 +91,7 @@
<label value="&docDirList.label;"/>
<hbox align="center">
<!-- Contents filled in at runtime -->
<menulist id="DocDirList" class="minWidth20" editable="true" flex="1"
<menulist id="DocDirList" class="minWidth20 uri-element" editable="true" flex="1"
oninput="onInputSettings();"/>
<!--
<button label="&chooseDirButton.label;" oncommand="ChooseDir(gDialog.DocDirList);" disabled="true"/>
@ -121,7 +121,7 @@
<spacer class="checkbox-spacer"/>
<spacer class="radio-spacer"/>
<!-- Contents filled in at runtime -->
<menulist id="OtherDirList" class="minWidth20" editable="true" flex="1"
<menulist id="OtherDirList" class="minWidth20 uri-element" editable="true" flex="1"
tooltiptext="&useSubdir.tooltip;" oninput="onInputSettings();"/>
<!--
<button label="&chooseDirButton.label;" oncommand="ChooseDir(gDialog.OtherDirList);" disabled="true"/>

Просмотреть файл

@ -40,11 +40,11 @@
</hbox>
<spacer class="spacer"/>
<label value="&siteUrl.label;"/>
<textbox id="PublishUrlInput" class="MinWidth20em"
<textbox id="PublishUrlInput" class="MinWidth20em uri-element"
tooltiptext="&siteUrl.tooltip;" oninput="onInputSettings();"/>
<spacer class="spacer"/>
<label value="&browseUrl.label;"/>
<textbox id="BrowseUrlInput" class="MinWidth20em"
<textbox id="BrowseUrlInput" class="MinWidth20em uri-element"
tooltiptext="&browseUrl.tooltip;" oninput="onInputSettings();"/>
<spacer class="spacer"/>
</groupbox>

Просмотреть файл

@ -71,7 +71,7 @@
<row align="center">
<label value="&directoryHostname.label;" accesskey="&directoryHostname.accesskey;"
control="hostname"/>
<textbox id="hostname" flex="1" disableiflocked="true"/>
<textbox id="hostname" flex="1" disableiflocked="true" class="uri-element"/>
<spacer flex="1"/>
</row>
<row align="center">
@ -79,7 +79,7 @@
accesskey="&directoryBaseDN.accesskey;"
control="basedn"/>
<vbox>
<textbox id="basedn" disableiflocked="true"/>
<textbox id="basedn" disableiflocked="true" class="uri-element"/>
</vbox>
<button label="&findButton.label;"
accesskey="&findButton.accesskey;" disabled="true"/>
@ -96,7 +96,7 @@
<label value="&directoryLogin.label;"
accesskey="&directoryLogin.accesskey;"
control="login"/>
<textbox id="login" flex="1"/>
<textbox id="login" flex="1" class="uri-element"/>
</row>
</rows>
</grid>

Просмотреть файл

@ -91,14 +91,14 @@ Rights Reserved.
<spacer flex="1"/>
<label control="PrimaryEmail" value="&PrimaryEmail.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="PrimaryEmail" flex="1" disableforreadonly="true"/>
<textbox id="PrimaryEmail" flex="1" disableforreadonly="true" class="uri-element"/>
</hbox>
</hbox>
<hbox>
<spacer flex="1"/>
<label control="SecondEmail" value="&SecondEmail.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="SecondEmail" flex="1" disableforreadonly="true"/>
<textbox id="SecondEmail" flex="1" disableforreadonly="true" class="uri-element"/>
</hbox>
</hbox>
<hbox>
@ -216,7 +216,7 @@ Rights Reserved.
<spacer flex="1"/>
<label control="WebPage2" value="&HomeWebPage.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WebPage2" flex="1" disableforreadonly="true"/>
<textbox id="WebPage2" flex="1" disableforreadonly="true" class="uri-element"/>
</hbox>
</hbox>
</vbox>
@ -290,7 +290,7 @@ Rights Reserved.
<spacer flex="1"/>
<label control="WebPage1" value="&WorkWebPage.label;" class="CardEditLabel"/>
<hbox class="CardEditWidth">
<textbox id="WebPage1" flex="1" disableforreadonly="true"/>
<textbox id="WebPage1" flex="1" disableforreadonly="true" class="uri-element"/>
</hbox>
</hbox>
</vbox>

Просмотреть файл

@ -103,7 +103,7 @@ Rights Reserved.
<row>
<hbox align="center">
<label class="awIdentityLabel" id="emailFieldLabel" value="&emailLabel.label;"/>
<textbox wsm_persist="true" mailtype="identity" name="email" id="email" flex="6"/>
<textbox wsm_persist="true" mailtype="identity" name="email" id="email" flex="6" class="uri-element"/>
<label id="postEmailText"/>
</hbox>
</row>
@ -137,7 +137,7 @@ Rights Reserved.
<description>&incomingServerNameDesc.label;</description>
<hbox align="center" class="serverDataBox">
<label class="label, serverLabel" value="&incomingServerLabel.label;" for="incomingServer"/>
<textbox wsm_persist="true" id="incomingServer" flex="1"/>
<textbox wsm_persist="true" id="incomingServer" flex="1" class="uri-element"/>
</hbox>
</vbox>
@ -147,7 +147,7 @@ Rights Reserved.
<description>&smtpServerDesc.label;</description>
<hbox align="center" class="serverDataBox">
<label class="label, serverLabel" value="&smtpServerLabel.label;" for="smtphostname"/>
<textbox id="smtphostname" wsm_persist="true" flex="1"/>
<textbox id="smtphostname" wsm_persist="true" flex="1" class="uri-element"/>
</hbox>
</vbox>
@ -183,7 +183,7 @@ Rights Reserved.
<separator class="thin"/>
<hbox align="center">
<label control="hostname" value="&newsServerLabel.label;" style="width: 8em;"/>
<textbox id="newsServer" wsm_persist="true" flex="1"/>
<textbox id="newsServer" wsm_persist="true" flex="1" class="uri-element"/>
</hbox>
</vbox>
</wizardpage>

Просмотреть файл

@ -94,7 +94,7 @@
prefstring="mail.identity.%identitykey%.bcc_other"/>
<textbox wsm_persist="true" id="identity.bccList" flex="1"
prefstring="mail.identity.%identitykey%.bcc_other_list"/>
prefstring="mail.identity.%identitykey%.bcc_other_list" class="uri-element"/>
</hbox>
</groupbox>

Просмотреть файл

@ -42,12 +42,12 @@
<row align="center">
<label value="&email.label;" control="identity.email"/>
<textbox wsm_persist="true" id="identity.email"
prefstring="mail.identity.%identitykey%.useremail"/>
prefstring="mail.identity.%identitykey%.useremail" class="uri-element"/>
</row>
<row align="center">
<label value="&replyTo.label;" control="identity.replyTo"/>
<textbox wsm_persist="true" id="identity.replyTo"
prefstring="mail.identity.%identitykey%.reply_to"/>
prefstring="mail.identity.%identitykey%.reply_to" class="uri-element"/>
</row>
<row align="center">
<label value="&organization.label;" control="identity.organization"/>
@ -66,7 +66,7 @@
<hbox align="center" class="indent">
<textbox wsm_persist="true" id="identity.signature" datatype="nsILocalFile" flex="1" name="identity.signature"
observes="broadcaster_attachSignature"
prefstring="mail.identity.%identitykey%.sig_file"/>
prefstring="mail.identity.%identitykey%.sig_file" class="uri-element"/>
<button class="push" name="browse" label="&choose.label;"
oncommand="selectFile()"
observes="broadcaster_attachSignature"

Просмотреть файл

@ -60,7 +60,7 @@ Contributors:
<hbox iscontrolcontainer="true" align="center">
<label id="fixedServerName" collapsed="true" use="server.realHostName"/>
<textbox wsm_persist="true" size="25" id="server.realHostName"
prefstring="mail.server.%serverkey%.realhostname"/>
prefstring="mail.server.%serverkey%.realhostname" class="uri-element"/>
</hbox>
</row>
<row align="center">
@ -221,7 +221,7 @@ Contributors:
<label value="&newsrcFilePath.label;" control="nntp.newsrcFilePath"/>
<textbox hidable="true" hidefor="imap,pop3" wsm_persist="true" id="nntp.newsrcFilePath"
datatype="nsIFileSpec"
prefstring="mail.server.%serverkey%.newsrc.file"/>
prefstring="mail.server.%serverkey%.newsrc.file" class="uri-element"/>
</vbox>
</vbox>
</groupbox>
@ -230,6 +230,7 @@ Contributors:
<label value="&localPath.label;" control="server.localPath"/>
<textbox wsm_persist="true" id="server.localPath"
datatype="nsIFileSpec"
class="uri-element"
prefstring="mail.server.%serverkey%.directory"/>
</vbox>
</page>

Просмотреть файл

@ -29,6 +29,6 @@
<vbox>
<label value="&localPath.label;"/>
<textbox wsm_persist="true" size="60" id="server.localPath" datatype="nsIFileSpec"
prefstring="mail.server.%serverkey%.directory"/>
prefstring="mail.server.%serverkey%.directory" class="uri-element"/>
</vbox>
</page>

Просмотреть файл

@ -58,7 +58,7 @@ Rights Reserved.
<row>
<hbox align="center">
<label class="awIdentityLabel" id="emailFieldLabel" value="&emailLabel.label;"/>
<textbox wsm_persist="true" mailtype="identity" name="email" id="email" flex="6"/>
<textbox wsm_persist="true" mailtype="identity" name="email" id="email" flex="6" class="uri-element"/>
<label id="postEmailText"/>
</hbox>
</row>

Просмотреть файл

@ -54,7 +54,7 @@ Rights Reserved.
<separator class="thin"/>
<hbox align="center">
<label style="width: 8em;" value="&incomingServerLabel.label;" control="hostname"/>
<textbox wsm_persist="true" id="hostname" flex="1"/>
<textbox wsm_persist="true" id="hostname" flex="1" class="uri-element"/>
</hbox>
</groupbox>
@ -64,7 +64,7 @@ Rights Reserved.
<separator class="thin"/>
<hbox align="center">
<label value="&smtpServerLabel.label;" control="smtphostname" style="width: 8em;"/>
<textbox id="smtphostname" wsm_persist="true" flex="1"/>
<textbox id="smtphostname" wsm_persist="true" flex="1" class="uri-element"/>
</hbox>
</groupbox>

Просмотреть файл

@ -79,7 +79,7 @@ Contributor(s):
control="mailnewsStartPageUrl"/>
<textbox id="mailnewsStartPageUrl" flex="1" preftype="localizedstring"
type="autocomplete" prefstring="mailnews.start_page.url"
searchSessions="history" timeout="50" maxrows="6"/>
searchSessions="history" timeout="50" maxrows="6" class="uri-element"/>
</hbox>
<hbox pack="end">

Просмотреть файл

@ -42,6 +42,7 @@
<label value="&serverName.label;"/>
<textbox id="smtp.hostname" flex="1"
preftype="string"
class="uri-element"
prefstring="mail.smtpserver.%serverkey%.hostname"/>
</row>
<row align="center">

Просмотреть файл

@ -19,7 +19,7 @@
<hbox>
<spacer style="width:10px" />
<label value="&webpage.label;"/>
<textbox id="attachurl" align="bottom" style="min-width:200px; padding-bottom:0px" />
<textbox id="attachurl" align="bottom" style="min-width:200px; padding-bottom:0px" class="uri-element"/>
<spacer style="width:10px" />
</hbox>

Просмотреть файл

@ -56,7 +56,7 @@ Rights Reserved.
</listcell>
<listcell class="addressingWidgetCell">
<textbox id="addressCol2#1" class="plain textbox-addressingWidget"
<textbox id="addressCol2#1" class="plain textbox-addressingWidget uri-element"
type="autocomplete" flex="1"
searchSessions="addrbook" timeout="300" maxrows="4"
autoFill="true" autoFillAfterMatch="true" forceComplete="true"

Просмотреть файл

@ -158,7 +158,7 @@ Contributor(s):
</hbox>
<hbox id="nav-bar-inner" flex="1">
<textbox id="urlbar" class="chromeclass-location" flex="1"
<textbox id="urlbar" class="chromeclass-location uri-element" flex="1"
type="autocomplete" searchSessions="history"
timeout="50" maxrows="6" alwaysopenpopup="true"
disablehistory="false" accesskey="d"

Просмотреть файл

@ -59,7 +59,7 @@
<hbox align="center">
<textbox id="dialog.input" flex="1" type="autocomplete"
searchSessions="history" timeout="50" maxrows="6"
disablehistory="false"
disablehistory="false" class="uri-element"
oninput="doEnabling();">
<menupopup id="ubhist-popup" class="autocomplete-history-popup"
popupalign="topleft" popupanchor="bottomleft"

Просмотреть файл

@ -148,7 +148,7 @@
</vbox>
<hbox class="indent">
<textbox id="advancedMailFTPAddress"
preftype="string" prefstring="network.ftp.anonymous_password"
preftype="string" prefstring="network.ftp.anonymous_password" class="uri-element"
flex="2"/>
</hbox>
</vbox>

Просмотреть файл

@ -56,18 +56,18 @@
<row align="center">
<label value="&newExtensions.label;" accesskey="&newExtensions.accesskey;"
control="extensions"/>
<textbox id="extensions" flex="1"/>
<textbox id="extensions" flex="1" class="uri-element"/>
</row>
<row align="center">
<label value="&newMIME.label;" accesskey="&newMIME.accesskey;"
control="mimeType"/>
<textbox id="mimeType" flex="1"/>
<textbox id="mimeType" flex="1" class="uri-element"/>
</row>
<row align="center">
<label value="&newAppPath.label;" accesskey="&newAppPath.accesskey;"
control="appPath"/>
<hbox align="center">
<textbox id="appPath" flex="1"/>
<textbox id="appPath" flex="1" class="uri-element"/>
<button label="&browse.label;" accesskey="&browse.accesskey;"
oncommand="chooseApp();"/>
</hbox>

Просмотреть файл

@ -87,7 +87,7 @@
<row align="center">
<label value="&diskCacheFolder.label;"/>
<hbox align="center">
<textbox id="browserCacheDiskCacheFolder" readonly="true"/>
<textbox id="browserCacheDiskCacheFolder" readonly="true" class="uri-element"/>
</hbox>
<button label="&chooseDiskCacheFolder.label;" accesskey="&chooseDiskCacheFolder.accesskey;"
oncommand="prefCacheSelectFolder();" id="chooseDiskCacheFolder"/>

Просмотреть файл

@ -64,7 +64,7 @@
<description>&homePageIntro.label;</description>
<hbox align="center">
<label value="&location.label;" accesskey="&location.accesskey;" control="browserStartupHomepage"/>
<textbox id="browserStartupHomepage" type="autocomplete" flex="1"
<textbox id="browserStartupHomepage" type="autocomplete" flex="1" class="uri-element"
searchSessions="history" timeout="50" maxrows="6"
oninput="locationInputHandler();" preftype="localizedstring"
prefstring="browser.startup.homepage"/> <!-- we may wish to change this to data

Просмотреть файл

@ -66,7 +66,7 @@
</hbox>
<hbox align="center">
<textbox id="networkProxyHTTP" preftype="string" prefstring="network.proxy.http"
flex="1"/>
flex="1" class="uri-element"/>
<label value="&port.label;" accesskey="&HTTPport.accesskey;" control="networkProxyHTTP_Port"/>
<textbox id="networkProxyHTTP_Port" preftype="int" prefstring="network.proxy.http_port"
size="5"/>
@ -78,7 +78,7 @@
</hbox>
<hbox align="center">
<textbox id="networkProxySSL" preftype="string" prefstring="network.proxy.ssl"
flex="1"/>
flex="1" class="uri-element"/>
<label value="&port.label;" accesskey="&SSLport.accesskey;" control="networkProxySSL_Port"/>
<textbox id="networkProxySSL_Port" preftype="int" prefstring="network.proxy.ssl_port"
size="5"/>
@ -90,7 +90,7 @@
</hbox>
<hbox align="center">
<textbox id="networkProxyFTP" preftype="string" prefstring="network.proxy.ftp"
flex="1"/>
flex="1" class="uri-element"/>
<label value="&port.label;" accesskey="&FTPport.accesskey;" control="networkProxyFTP_Port"/>
<textbox id="networkProxyFTP_Port" preftype="int" prefstring="network.proxy.ftp_port"
size="5"/>
@ -102,7 +102,7 @@
</hbox>
<hbox align="center">
<textbox id="networkProxyGopher" preftype="string" prefstring="network.proxy.gopher"
flex="1"/>
flex="1" class="uri-element"/>
<!-- gopher port doesn't have an accesskey because the window needs a redesign - bbaetz -->
<label value="&port.label;" accesskey="&gopherPort.accesskey;" control="networkProxyGopher_Port"/>
<textbox id="networkProxyGopher_Port" preftype="int" prefstring="network.proxy.gopher_port"
@ -115,7 +115,7 @@
</hbox>
<hbox align="center">
<textbox id="networkProxySOCKS" preftype="string" prefstring="network.proxy.socks"
flex="1"/>
flex="1" class="uri-element"/>
<label value="&port.label;" accesskey="&SOCKSport.accesskey;" control="networkProxySOCKS_Port"/>
<textbox id="networkProxySOCKS_Port" preftype="int" prefstring="network.proxy.socks_port"
size="5"/>
@ -134,7 +134,7 @@
<hbox align="center" pack="end">
<label value="&noproxy.label;" accesskey="&noproxy.accesskey;" control="networkProxyNone"/>
</hbox>
<textbox id="networkProxyNone" preftype="string" prefstring="network.proxy.no_proxies_on"/>
<textbox id="networkProxyNone" preftype="string" prefstring="network.proxy.no_proxies_on" class="uri-element"/>
</row>
<row>
<spacer/>
@ -145,7 +145,7 @@
<radio value="2" label="&autoTypeRadio.label;" accesskey="&autoTypeRadio.accesskey;" oncommand="DoEnabling();"/>
<hbox class="indent" flex="1" align="center">
<textbox id="networkProxyAutoconfigURL" flex="1"
preftype="string" prefstring="network.proxy.autoconfig_url"/>
preftype="string" prefstring="network.proxy.autoconfig_url" class="uri-element"/>
<button id="autoReload" label="&reload.label;" accesskey="&reload.accesskey;"
oncommand="ReloadPAC();"
prefstring="pref.advanced.proxies.disable_button.reload"/>

Просмотреть файл

@ -45,6 +45,18 @@ window[chromehidden~="location"][chromehidden~="toolbar"] .chromeclass-toolbar
}
/* ::::::::::
:: Rules for forcing direction for entry and display of URIs
:: or URI elements
::::: */
textbox.uri-element,
menulist.uri-element
{
direction: ltr !important;
}
/****** elements that have no visual representation ******/
data,