bootstrap-datepicker icon indicating copy to clipboard operation
bootstrap-datepicker copied to clipboard

Bootstrap datepicker in arabic showing extended width

Open hassan715 opened this issue 8 years ago • 1 comments

Expected behaviour

Width shouldn't exceed the screen width.

Actual behaviour

When opened the width exceeds the screen width especially when using a mobile browser. This behavior appears when using RTL template.

screenshot_2017-11-10-17-15-15

Datepicker version used

v1.7.1

hassan715 avatar Nov 10 '17 17:11 hassan715

Fixed it like tihs: var elementWidth = this.component ? this.component.parent().width() : this.element.width(); if (this.o.rtl) { var right = windowWidth - (left + elementWidth); this.picker.css({ top: top, right: right, zIndex: zIndex }); } else { this.picker.css({ top: top, left: left, zIndex: zIndex }); }

ilyaqq1999 avatar Jul 15 '22 11:07 ilyaqq1999