Loading ...
Sorry, an error occurred while loading the content.

7926Re: input fields do not focus for forms in Panel

Expand Messages
  • Michael Newton
    Dec 28, 2006
    • 0 Attachment
      I know I shouldn't have to change it, but I do! Here's a simplified
      testcase of what's happening. I started out with a saved copy of my
      intranet page and pared it down from there.

      The textarea in the (fixed position) blue box has a caret, while the
      textarea in the (relatively positioned) red box appears not to. The
      caret is being "covered up" by the blue box. Start typing in the red
      box; when the caret is outside the bounds of the blue box it will
      appear again. Because the YUI dialog is relatively positioned, any
      time it's over top of a fixed or absolutely positioned element, the
      cursor is going to disappear.

      This is clearly a browser problem, but I'm hoping some CSS or JS guru
      can come up with a way around it. It's been fixed for Firefox 3.0 but
      nobody seems to be too worried about it getting put on the 2.0 branch.



      <style type="text/css">
      #foo {
      position: fixed;
      height: 100px;
      width: 300px;
      background-color: blue;
      #bar {
      top: 70px;
      left: 200px;
      height: 100px;
      width: 300px;
      background-color: red;

      <title>Test Case</title>

      <div id="foo">

      <div id="bar">


      --- In ydn-javascript@yahoogroups.com, "Steven Peterson"
      <y_stevenp@...> wrote:
      > Did you get a chance to look at the Dialog example where this is not an
      > issue? You should not have to change the Panel to position:fixed in
      order to
      > resolve this issue.
      > Steven Peterson
      > Web Developer, Platform Engineering
      > Yahoo!
      > From: ydn-javascript@yahoogroups.com
      > On Behalf Of Michael Newton
      > Sent: Thursday, December 28, 2006 12:10 PM
      > To: ydn-javascript@yahoogroups.com
      > Subject: [ydn-javascript] Re: input fields do not focus for forms in
      > I found another thread discussing this, and it was suggested that
      > position:relative was the culprit. So I opened up container.css and
      > changed .panel to position:fixed (line 103) and it worked. Of course,
      > now I can't move the panel, which is pretty useless. But hopefully it
      > will provide help for someone to fix this.
      > --- In ydn-javascript@yahoogroups.com
      > <mailto:ydn-javascript%40yahoogroups.com> , "jas0n510" <novotny@> wrote:
      > >
      > >
      > > Hi,
      > >
      > > I'm displaying a form in my Panel with some textfields and I notice
      > > that when I click inside the textfield area, the cursor does not
      > > start flashing inside it as I would expect-- any ideas what I can do?
      > > This is with latest FireFox.
      > >
      > > Thanks, Jason
      > >
    • Show all 14 messages in this topic