Custom Query (7259 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (115 - 117 of 7259)

Ticket Resolution Summary Owner Reporter
#2096 fixed ui.mouse: appendTo broken paul wehriam
Description

Lines 141-142 in UI mouse in rev 4311:

			if(o.appendTo == 'parent') { // Let's see if we have a positioned parent
				var cp = a.parentNode;
				while (cp) {
					if(cp.style && ($(cp).css('position') == 'relative' || $(cp).css('position') == 'absolute')) {
						o.pp = cp;
						o.po = $(cp).offset();
						o.ppOverflow = !!($(o.pp).css('overflow') == 'auto' || $(o.pp).css('overflow') == 'scroll'); //TODO!
						break;	
					}
					cp = cp.parentNode ? cp.parentNode : null;
				};
				
				if(!o.pp) o.po = { top: 0, left: 0 };
			}

If "appendTo" is specified (for example when using a draggable) the this.options.po object goes unset. This causes problems in ui.draggable and likely elsewhere.

			if(o.appendTo == 'parent') { // Let's see if we have a positioned parent
				var cp = a.parentNode;
				while (cp) {
					if(cp.style && ($(cp).css('position') == 'relative' || $(cp).css('position') == 'absolute')) {
						o.pp = cp;
						o.po = $(cp).offset();
						o.ppOverflow = !!($(o.pp).css('overflow') == 'auto' || $(o.pp).css('overflow') == 'scroll'); //TODO!
						break;	
					}
					cp = cp.parentNode ? cp.parentNode : null;
				};
				
				if(!o.pp) o.po = { top: 0, left: 0 };
			} else { 
				var cp = $(o.appendTo)[0];
				while (cp) {
					if(cp.style && ($(cp).css('position') == 'relative' || $(cp).css('position') == 'absolute')) {
						o.pp = cp;
						o.po = $(cp).offset();
						o.ppOverflow = !!($(o.pp).css('overflow') == 'auto' || $(o.pp).css('overflow') == 'scroll'); //TODO!
						break;	
					}
					cp = cp.parentNode ? cp.parentNode : null;
				};

				if(!o.pp) o.po = { top: 0, left: 0 };
			}

This seems to fix the problem. Sorry - for the time being I am not familiar enough with the codebase to give a more elegant solution.

#2097 fixed Bug on UI DIALOG using opera browser rdworth jonasformolo
Description

i've found a bug when i tried to insert a text input into the dialog... when it is clicked, the focus is lost.. the same occurs with select elements (combobox)

thanks!

#2098 fixed Datepicker - onSelect should use apply() with input reference kbwood Stormtrooper
Description

The onSelect callback of the Datepicker UI control should be bound to the input that triggered it and also pass the date variable to it as it does already.

for example (pseudo code):

somewhere within the datepicker code ... if (options.onSelect) {

options.onSelect.apply(the_input, [ date_var ]);

}

This way, the callback can reference 'this' as the input and can do more things depending on the input that triggered the calendar popup (useful when several date inputs are on a page). Adding this feature would not break previous versions since the date variable is still passed as the first argument to the callback.

Thanks.

Note: See TracQuery for help on using queries.