Custom Query (7259 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (115 - 117 of 7259)

Ticket Resolution Summary Owner Reporter
#1904 fixed Calendar doesn't position well when used in position:fixed elements johngeek
Description

When attaching a calendar to an input placed inside a div whose position is set to "fixed", the popup calendar doesn't show up in the right position.

The problem is that the calendar use the input's offset (relative to the viewport's top left corner) to compute its position while it should use an offset relative to the document's top left corner.

Workaround:

check whether a parent of the target input field has its position set to 'fixed'. If it is the case, then set the popup position to 'fixed' instead of 'absolute'

Quick fix for ui.calendar:

in the showFor method, line 313, replace

if (!popUpCal._pos) { // position below input

	popUpCal._pos = popUpCal._findPos(input);
	popUpCal._pos[1] += input.offsetHeight;
}
inst._calendarDiv.css('position', (popUpCal._inDialog && $.blockUI ? 'static' : 'absolute')).
	css('left', popUpCal._pos[0] + 'px').css('top', popUpCal._pos[1] + 'px');

By

if (!popUpCal._pos) { // position below input
	popUpCal._pos = popUpCal._findPos(input);
	popUpCal._pos[1] += input.offsetHeight;
	
	// Check whether the input is not inside a position:fixed div
	popUpCal._fixed  = false
	$(input).parents().each(function() {popUpCal._fixed  |= $(this).css('position') == 'fixed'});
}
inst._calendarDiv.css('position', (popUpCal._inDialog && $.blockUI ? 'static' : (popUpCal._fixed ? 'fixed' : 'absolute'))).
	css('left', popUpCal._pos[0] + 'px').css('top', popUpCal._pos[1] + 'px');
#1909 fixed DatePicker Doesnt Use JQuery Alias iMarc mnichols
Description

DatePicker uses the alias '$' in within the control which doesn't respect the environment. For example, if the alias '$j' is used on the page for jQuery integration with other libraries datepicker breaks on certain events such as onmouseover which dynamically adds a class.

To Test, simply use the noConflict call on jQUery and assign $j to that. Then try to use the date picker.

#1910 worksforme Datepicker -> Input field locked from editing iMarc MySchizoBuddy
Description

In the example where the pop up calendar should only appear when you click on a button. The input field is locked for editing. You can see the cursor, but when you type nothing appears in the field. Only way to get anything in the field is to use the date picker. No manual entry is allowed

Note: See TracQuery for help on using queries.