@@ -114,35 +114,36 @@ define(function (require, exports, module) {
114114 /**
115115 * @private
116116 *
117- * Create an appropriate div based thickness to indent the tree correctly.
117+ * Create an appropriate div based " thickness" to indent the tree correctly.
118118 *
119- * @param {int } depth - The depthness of the current node.
120- * @return {ReactComponent } - The resulting div.
119+ * @param {int } depth The depth of the current node.
120+ * @return {ReactComponent } The resulting div.
121121 */
122122 function _createThickness ( depth ) {
123123 return DOM . div ( {
124124 className : "thickness" ,
125125 style : {
126- width : ( INDENTATION_WIDTH * depth ) + "px"
126+ display : "inline-block" ,
127+ width : INDENTATION_WIDTH * depth
127128 }
128129 } ) ;
129130 }
130131
131132 /**
132133 * @private
133134 *
134- * Create the arrow icons used for the folders indented correctly .
135+ * Create, and indent correctly, the arrow icons used for the folders.
135136 *
136- * @param {int } depth - The depthness of the current node.
137- * @return {ReactComponent } - The resulting ins.
137+ * @param {int } depth The depth of the current node.
138+ * @return {ReactComponent } The resulting ins.
138139 */
139140 function _createAlignedIns ( depth ) {
140141 return DOM . ins ( {
141142 className : "jstree-icon" ,
142143 style : {
143- marginLeft : ( INDENTATION_WIDTH * depth ) + "px"
144+ marginLeft : INDENTATION_WIDTH * depth
144145 }
145- } , " " ) ;
146+ } ) ;
146147 }
147148
148149 /**
@@ -503,8 +504,9 @@ define(function (require, exports, module) {
503504 } ,
504505 DOM . ins ( {
505506 className : "jstree-icon"
506- } , " " ) ,
507+ } ) ,
507508 ] ;
509+
508510 var thickness = _createThickness ( this . props . depth ) ;
509511
510512 if ( this . props . entry . get ( "rename" ) ) {
0 commit comments