Home | History | Annotate | Download | only in scripts

Lines Matching refs:height

1 // expand/collapse button (expander) is added if height of a cell content 
5 // Height in pixels of an expander image.
11 // array[group][cell] of { 'height', 'expanded' }.
14 // height: a number, px; original height of a cell in a table.
24 // Returns { 'height', 'expanded' } info for a cell with a given id.
55 // We found a div wrapping a cell content whose height exceeds
72 with (data.style) { height = (CLIP_HEIGHT - EXPANDER_HEIGHT) + "px";
103 expandableDiv.style.height = CLIP_HEIGHT + "px";
106 // Keep original cell height and its ecpanded/cpllapsed state.
111 CellsInfo[groupCount][cellCount] = { 'height' : originalHeight,
142 // New height of a row.
148 // Cell is expanded - collapse the row height to CLIP_HEIGHT.
153 // Cell is collapsed - expand the row height to the cells original height.
154 newHeight = cellInfo.height;
158 // Update all cells (height and expanded/collapsed state) in a row according
159 // to the new height of the row.
163 expandableDiv.style.height = newHeight + "px";
168 if (state.height > newHeight) {
169 // Cell height exceeds row height - collapse a cell.
170 data.style.height = (newHeight - EXPANDER_HEIGHT) + "px";
174 // Cell height is less then or equal to row height - expand a cell.
175 data.style.height = "";
186 // row height.
188 window.scrollBy(0, newHeight - cellInfo.height);