Fix Bug 47026

This commit is contained in:
Julia Radzhabova 2020-10-21 18:55:04 +03:00
parent 749feeab83
commit f4dd30f6f5
2 changed files with 2 additions and 2 deletions

View file

@ -114,7 +114,7 @@ define([
renderStyles: function() {
var $styleContainer = $('#edit-table-styles .item-inner');
if ($styleContainer.length > 0) {
if ($styleContainer.length > 0 && $styleContainer.is(':visible')) {
var columns = parseInt(($styleContainer.width() - 15) / 70), // magic
row = -1,
styles = [];

View file

@ -115,7 +115,7 @@ define([
renderStyles: function() {
var $styleContainer = $('#edit-table-styles .item-inner');
if ($styleContainer.length > 0) {
if ($styleContainer.length > 0 && $styleContainer.is(':visible')) {
var columns = parseInt($styleContainer.width() / 70), // magic
row = -1,
styles = [];