Fix strange quoting behaviour (#1225)

This commit is contained in:
RainLoop Team 2016-10-26 01:10:36 +03:00
parent aecb0b2500
commit ca4897038a
3 changed files with 26 additions and 3 deletions

View file

@ -5,7 +5,7 @@ import _ from '_';
import ko from 'ko';
import Autolinker from 'Autolinker';
import {$win, $div, dropdownVisibility, data as GlobalsData} from 'Common/Globals';
import {$win, $div, $hcont, dropdownVisibility, data as GlobalsData} from 'Common/Globals';
import {ComposeType, EventKeyCode, SaveSettingsStep, FolderType} from 'Common/Enums';
import {Mime} from 'Common/Mime';
import {jassl} from 'Common/Jassl';
@ -1450,6 +1450,18 @@ export function mimeContentType(fileName)
return result;
}
/**
* @param {Object} $el
* @returns {number}
*/
export function getRealHeight($el)
{
$el.clone().show().appendTo($hcont);
const result = $hcont.height();
$hcont.empty();
return result;
}
/**
* @param {string} url
* @param {number} value