Fix style issues in poll (Chrome)

This commit is contained in:
yflory
2017-10-11 16:01:26 +02:00
parent 86767184da
commit 54b5a2d654
2 changed files with 7 additions and 7 deletions

View File

@@ -264,7 +264,7 @@ define([
};
var styleUncommittedColumn = function () {
var $scroll = $('#cp-app-poll-table-scroll');
var hasScroll = $scroll.width() < $scroll[0].scrollWidth;
var hasScroll = $scroll.width() < $scroll[0].scrollWidth && $scroll.width() > 100;
APP.uncommitted.content.colsOrder.forEach(function(id) {
// Enable the checkboxes for the uncommitted column
enableColumn(id);
@@ -331,7 +331,7 @@ define([
};
var addCount = function () {
var $scroll = $('#cp-app-poll-table-scroll');
var hasScroll = $scroll.width() < $scroll[0].scrollWidth;
var hasScroll = $scroll.width() < $scroll[0].scrollWidth && $scroll.width() > 100;
var $countCol = $('tr td:last-child');
if (hasScroll) {
$countCol.css('right', '0');