Skip to content

Commit 1dd9a04

Browse files
authored
Merge pull request #830 from Codeinwp/bugfix/829
Fix broken chart layout issue when add long title
2 parents 626c2de + 7d79626 commit 1dd9a04

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

css/library.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,9 @@ input:checked + .visualizer-slider:before {
299299
padding-bottom: 5px;
300300
font-weight: bold;
301301
text-align: center;
302+
text-overflow: ellipsis;
303+
white-space: nowrap;
304+
overflow: hidden;
302305
}
303306

304307
div.visualizer-library-form .viz-filter {

js/library.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
margin = width * 0.02;
4343

4444
width *= 0.305;
45+
$(this).prev( '.visualizer-chart-title' ).width(width - 14);
4546
$(this).width(width - 14).height(width * 0.75).parent().css('margin-right', margin + 'px').css('margin-bottom', margin + 'px');
4647
});
4748
};

0 commit comments

Comments
 (0)