* All Applications: Fix problem with resizing listviews' columns in FireFox (FF) and Internet Explorer (IE).

- Fix column being resized by clicking on selectbox (dropdown triangle handle) in IE and FF
- Fix resizing column attempt to select texts instead of resizing column in FF
This commit is contained in:
Hadi Nategh 2014-08-20 08:18:40 +00:00
parent 828274fea9
commit b8ba550e47

View File

@ -41,9 +41,17 @@
if (overlay == null || helper == null)
{
// Prevent text selection
_elem[0].onselectstart = function() {
return false;
};
// FireFox handles highlight prevention (text selection) different than other browsers
if (typeof _elem[0].style.MozUserSelect !="undefined")
{
_elem[0].style.MozUserSelect = "none";
}
else
{
_elem[0].onselectstart = function() {
return false;
};
}
// Reset the "didResize" flag
didResize = false;
@ -112,7 +120,8 @@
// Bind the "mousedown" event in the "resize" namespace
_elem.bind("mousedown.resize", function(e) {
if (inResizeRegion(e.pageX, _elem))
// Do not triger startResize if clicked element is select-tag, as it may causes conflict in some browsers
if (inResizeRegion(e.pageX, _elem) && e.target.tagName != 'SELECT')
{
// Start the resizing
startResize(outerTable, _elem, function(_w) {