Răsfoiți Sursa

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 ani în urmă
părinte
comite
7ddca47032
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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
                     );
                 }