1. #1
    Ext User
    Join Date
    Apr 2010
    Posts
    2
    Vote Rating
    0
    artlung is on a distinguished road

      0  

    Default Size element so it is exactly as tall as it needs to be to not scroll

    Size element so it is exactly as tall as it needs to be to not scroll


    Size element so it is exactly as tall as it needs to be to not scroll
    I am working on a tool to allow creating small "notes" that I then turn into `Ext.Draggable` items. What I would like to do is to have these items be sized no taller than they need to be.

    The elements are absolutely positioned: set `position: absolute` with `top` and `left` and `height` and `width` values in-line. The problem is that the height values are not really very reliable.

    Is it possible to set the size at something very short (say 3px), then increment the height until the scrollbars disappear? How can I tell when that occurs, and can I do it in a way that's reliable across browsers?

    Code is here: http://github.com/artlung/ArtLung-No...er/v2/index.js
    Last edited by artlung; 23 Jun 2010 at 2:03 PM. Reason: formatting, clarity

  2. #2
    Ext User
    Join Date
    Apr 2010
    Posts
    2
    Vote Rating
    0
    artlung is on a distinguished road

      0  

Similar Threads

  1. Replies: 1
    Last Post: 13 Dec 2009, 7:10 PM
  2. Ext.Element.scrollIntoPosition - scroll an Element within a container to anchor point
    By makana in forum Ext 3.x: User Extensions and Plugins
    Replies: 0
    Last Post: 11 Dec 2009, 9:23 AM
  3. Some Fields in form are very tall
    By netnutmike in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 14 Nov 2008, 9:37 AM
  4. TreeNode icon is too tall?
    By richardtallent in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 7 May 2008, 5:51 PM

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar