Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Learn More

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

A Problem with the Quick Find Bar

  • 2 відповіді
  • 1 має цю проблему
  • 7 переглядів
  • Остання відповідь від Yaron

more options

Hi,

I’ve added the following line to userChrome.css, and FF opens the Quick Find Bar with the ‘Find Next’ and ‘Find Previous’ buttons.

.findbar-container > * { display:-moz-box !important; }

With Those buttons, there isn’t enough space in the Quick Bar, and when the description ‘End of Page’ (etc) shows – it is only partially displayed.

How do I change the label text from ‘Quick Search:’ to ‘Find:’?



And apropos the Find Bar.

I have a toolbar button which toggles the Find Bar on and off. I’d like that button to be checked when the Find Bar is visible, and unchecked when it is hidden.

I’ve added the following line to an xul file, and it works perfectly.

<command id="cmd_find" oncommand="gFindBar.onFindCommand(); setFindCkeckState();"/>

For some reason, FF ignores the "cmd_findClose" id.

<command id="cmd_findClose" oncommand="gFindBar.close(); setFindCkeckState ();"/>

Why? Is it possible to add an Event Listener for the Find bar being opened or closed? Can I check and uncheck that button in a css file? (That would be better).


Thanks.

Hi, I’ve added the following line to userChrome.css, and FF opens the Quick Find Bar with the ‘Find Next’ and ‘Find Previous’ buttons. .findbar-container > * { display:-moz-box !important; } With Those buttons, there isn’t enough space in the Quick Bar, and when the description ‘End of Page’ (etc) shows – it is only partially displayed. How do I change the label text from ‘Quick Search:’ to ‘Find:’? And apropos the Find Bar. I have a toolbar button which toggles the Find Bar on and off. I’d like that button to be checked when the Find Bar is visible, and unchecked when it is hidden. I’ve added the following line to an xul file, and it works perfectly. <command id="cmd_find" oncommand="gFindBar.onFindCommand(); setFindCkeckState();"/> For some reason, FF ignores the "cmd_findClose" id. <command id="cmd_findClose" oncommand="gFindBar.close(); setFindCkeckState ();"/> Why? Is it possible to add an Event Listener for the Find bar being opened or closed? Can I check and uncheck that button in a css file? (That would be better). Thanks.

Змінено Yaron

Усі відповіді (2)

more options

I use this command in a PrefBar button to toggle the Find bar on/off

if (gFindBar.hidden) gFindBar.onFindCommand(); else gFindBar.close();
more options

Thanks for the code.

I'd also like the button to be checked if I press Ctrl+F. Any idea? Is it possible to check and uncheck buttons in css?

I appreciate your help.