Fix Bug 47026
This commit is contained in:
parent
749feeab83
commit
f4dd30f6f5
|
@ -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 = [];
|
||||
|
|
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue