From 62bdc30d57eeeddd0bd49f622fad47e028639612 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Mon, 23 Nov 2015 14:34:47 +0100 Subject: [PATCH] adjust datepicker to work in settings-list (holidays) --- .../javascripts/app/lib/bootstrap/bootstrap-datepicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js b/app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js index ef1a3f4f5..7e00802d1 100755 --- a/app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js +++ b/app/assets/javascripts/app/lib/bootstrap/bootstrap-datepicker.js @@ -25,6 +25,7 @@ Zammad Edits: - fix todayBtn toggle of display none and block: toggleClass instead - allow custom template as options parameter + - fix that place method doesn't think that the container is the window, but rather the real window is the window */ @@ -685,7 +686,7 @@ calendarHeight = this.picker.outerHeight(), visualPadding = 10, container = $(this.o.container), - windowWidth = container.width(), + windowWidth = $(window).width(), scrollTop = container.scrollTop(), appendOffset = container.offset();