Browse Source

Render all drag resize handles in ChatRoomView (#758)

The ChatRoomView renderDragResizeHandles is only rendering the top resize handle (<div class="dragresize dragresize-top"></div>). the insert was only inserting the first child of the dragresize template, which has 3 children. Modified to insert the whole the div that the dragresize template gets inserted into.
Leo 8 năm trước cách đây
mục cha
commit
7ddca47032
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/converse-dragresize.js

+ 1 - 1
src/converse-dragresize.js

@@ -272,7 +272,7 @@
                     var div = document.createElement('div');
                     div.innerHTML = converse.templates.dragresize();
                     flyout.insertBefore(
-                        div.firstChild,
+                        div,
                         flyout.firstChild
                     );
                 }