Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
VanillaJS Datepicker in subform Topic is solved
-
- Posts: 148
- Joined: Mon Dec 05, 2011 12:23 pm
- Location: Newton Abbot, UK
- Has thanked: 1 time
- Been thanked: 1 time
VanillaJS Datepicker in subform
I have a subform with date fieldsthat occupies a narrow portion of the form, and the new datepicker is not visible when in the last row (at bottom of subform). I have to scroll down after I've clicked on the date field in order to see the picker. Can it be made to display "always on top"?
Re: VanillaJS Datepicker in subform
vario,
Is this what you mean?
And you want this?
Until this is updated on GitHub you can add this to nuBuilder's JavaScript in nuform.js ...
Steven
Is this what you mean?
And you want this?
Until this is updated on GitHub you can add this to nuBuilder's JavaScript in nuform.js ...
Code: Select all
setCalendarTop();
}
function setCalendarTop(){
var $innerDiv = $('.datepicker');
var offset = $innerDiv.offset();
// Move the div to the body
$innerDiv.appendTo('body');
// Apply the position
$innerDiv.css({position: 'absolute', top: offset.top, left: offset.left});
}
Steven
You do not have the required permissions to view the files attached to this post.
A short post is a good post.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact: