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

Re: Data Table cell editor

Expand Messages
  • zahu71
    That s great Satyam. Thank you ... (whose ... take ... look at the ... values ... margins, ... something else ... do some ... to do a
    Message 1 of 3 , Dec 21, 2007
    • 0 Attachment
      That's great Satyam. Thank you

      --- In ydn-javascript@yahoogroups.com, "Satyam" <satyam@...> wrote:
      >
      > Just setting the with won't help much. The container for the editor
      (whose
      > class is yui-dt-editor) has padding, margin and borders and they all
      take
      > some pixels here and there.
      >
      > The best thing is to use Firebug and use the Inspect function to
      look at the
      > editor and the container of the editor and start playing with the
      values
      > until you find some combination that fits.
      >
      > To start with, I would redefine the class yui-dt-editor and set all
      margins,
      > borders and paddings to zero and then, there will probably be
      something else
      > left and that is where the Inspect button will help. If you have to
      do some
      > arithmetic, remember that the offset value is a string and you have
      to do a
      > parseInt before adding or subtracting a few pixels to make it fit.
      >
      > Satyam
      >
      >
      > ----- Original Message -----
      > From: "zahu71" <zaherhammoud@...>
      > To: <ydn-javascript@yahoogroups.com>
      > Sent: Friday, December 21, 2007 3:52 PM
      > Subject: [ydn-javascript] Data Table cell editor
      >
      >
      > > Hi,
      > >
      > > I am trying to make the visible text field editor inside a data table
      > > fits the cell width and height:
      > >
      > > elTextbox.style.width = (elCell.offsetWidth) + "px";
      > >
      > > This is not working for me for some reason. I still get the editor
      > > container larger than the cell.
      > >
      > > I appreciate any help on this.
      > >
      > > Thanks
      > >
      > >
      > >
      > >
      > >
      > > Yahoo! Groups Links
      > >
      > >
      > >
      > >
      > >
      > > --
      > > No virus found in this incoming message.
      > > Checked by AVG Free Edition.
      > > Version: 7.5.516 / Virus Database: 269.17.5/1191 - Release Date:
      > > 20/12/2007 14:14
      > >
      > >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.