172 | | element.getFirst().setStyle( 'height', block.element.$.scrollHeight + 'px' ); |
| 172 | var target = element.getFirst(); |
| 173 | var height = block.element.$.scrollHeight; |
| 174 | |
| 175 | // Account for extra height needed due to IE quirks box model bug: |
| 176 | // http://en.wikipedia.org/wiki/Internet_Explorer_box_model_bug |
| 177 | // (#3426) |
| 178 | if ( CKEDITOR.env.ie && CKEDITOR.env.quirks && height > 0 ) |
| 179 | height += ( target.$.offsetHeight || 0 ) - ( target.$.clientHeight || 0 ); |
| 180 | |
| 181 | target.setStyle( 'height', height + 'px' ); |