Parcourir la source

Merge pull request #572 from cwildfoerster/fix-562

fixes #562
André Peters il y a 8 ans
Parent
commit
0fd54e6be2
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      data/web/js/admin.js

+ 6 - 2
data/web/js/admin.js

@@ -591,8 +591,12 @@ $(window).load(function(){
   });
 });
 
-$(window).on('resize', function(){
+function resizeScrollbox() {
   on_resize_width = $("#sidebar-admin").width();
   $("#scrollbox").removeAttr("style");
   $("#scrollbox").css("width", on_resize_width);
-});
+}
+
+$(window).on('resize', resizeScrollbox);
+$('a[data-toggle="tab"]').on('shown.bs.tab', resizeScrollbox);
+