Fix Bug 47026
This commit is contained in:
parent
749feeab83
commit
f4dd30f6f5
|
@ -114,7 +114,7 @@ define([
|
||||||
renderStyles: function() {
|
renderStyles: function() {
|
||||||
var $styleContainer = $('#edit-table-styles .item-inner');
|
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
|
var columns = parseInt(($styleContainer.width() - 15) / 70), // magic
|
||||||
row = -1,
|
row = -1,
|
||||||
styles = [];
|
styles = [];
|
||||||
|
|
|
@ -115,7 +115,7 @@ define([
|
||||||
renderStyles: function() {
|
renderStyles: function() {
|
||||||
var $styleContainer = $('#edit-table-styles .item-inner');
|
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
|
var columns = parseInt($styleContainer.width() / 70), // magic
|
||||||
row = -1,
|
row = -1,
|
||||||
styles = [];
|
styles = [];
|
||||||
|
|
Loading…
Reference in a new issue