Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6494419

Choice component in Firefox/Mozilla has a wrong size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • x86
    • windows

      Consider the following simple applet:

      import java.applet.*;
      import java.awt.*;

      public class choice_cut extends Applet {

      public void init()
      {
          setBackground(Color.gray);
          Choice choice = new Choice();
          choice.setFont(new Font("Serif", Font.BOLD, 19));
          for (int i=0; i<101; i++) choice.addItem("Item " + String.valueOf(i) + " ");
          add(choice);
      }
      }

      Running the applet in appletviewer or Internet Explorer doesn't show any errors, while in Mozilla and Firefox the opened choice size is too large: about 30 items or even more. If the screen resolution is 800x600 or less this may lead to some last choice items (98, 99, 100) to be inaccessible with mouse.

            serb Sergey Bylokhov
            art Artem Ananiev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: