mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
fix: iframe not auto expand
https://github.com/goldendict/goldendict/issues/1448
This commit is contained in:
parent
8048830246
commit
ab7ffab225
|
@ -46,9 +46,11 @@ function playSound(sound) {
|
|||
function emitClickedEvent(link) {
|
||||
try {
|
||||
articleview.linkClickedInHtml(link);
|
||||
}catch(error)
|
||||
{
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function resizeIframe(obj) {
|
||||
obj.style.height = obj.contentWindow.document.documentElement.scrollHeight + 'px';
|
||||
}
|
||||
|
|
|
@ -389,7 +389,7 @@ sptr< DataRequest > WebSiteDictionary::getArticle( wstring const & str,
|
|||
"\" onmouseover=\"processIframeMouseOver('gdexpandframe-" + getId() + "');\" "
|
||||
"onmouseout=\"processIframeMouseOut();\" "
|
||||
"scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" "
|
||||
"frameborder=\"0\" vspace=\"0\" hspace=\"0\" "
|
||||
"frameborder=\"0\" vspace=\"0\" hspace=\"0\" onload=\"resizeIframe(this)\""
|
||||
"style=\"overflow:visible; width:100%; display:block;\">"
|
||||
"</iframe>";
|
||||
|
||||
|
|
Loading…
Reference in a new issue