Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Goldthorpe2007-02-14 19:54:22 +0000
committerChris Goldthorpe2007-02-14 19:54:22 +0000
commiteb8b9c1baf4dad76822f697a65e46111b86b8c18 (patch)
treec384f6adf4a98c8c3bd74016b5015984d9dae5e3
parent73d3a028bd2ac9badf484890a550025f04910429 (diff)
downloadeclipse.platform.ua-eb8b9c1baf4dad76822f697a65e46111b86b8c18.tar.gz
eclipse.platform.ua-eb8b9c1baf4dad76822f697a65e46111b86b8c18.tar.xz
eclipse.platform.ua-eb8b9c1baf4dad76822f697a65e46111b86b8c18.zip
Bug 172895 - [Webapp] Accessibility:Some content is cut off in Search result field in Help window in High Contrast Extra Large
-rw-r--r--org.eclipse.help.webapp/advanced/view.jsp19
-rw-r--r--org.eclipse.help.webapp/advanced/views.jsp3
2 files changed, 22 insertions, 0 deletions
diff --git a/org.eclipse.help.webapp/advanced/view.jsp b/org.eclipse.help.webapp/advanced/view.jsp
index 6b4ec72a1..f1620d465 100644
--- a/org.eclipse.help.webapp/advanced/view.jsp
+++ b/org.eclipse.help.webapp/advanced/view.jsp
@@ -27,6 +27,11 @@
function onloadHandler(e)
{
+ resize();
+}
+
+function resize()
+{
<% if (data.isIE() || data.isMozilla() && "1.2.1".compareTo(data.getMozillaVersion()) <=0){
%> var h=window.<%=view.getName()%>ToolbarFrame.document.getElementById("titleText").offsetHeight; <%-- default 13 --%>
if(h<=19){
@@ -36,6 +41,20 @@ function onloadHandler(e)
window.<%=view.getName()%>ToolbarFrame.document.getElementById("titleTextTableDiv").style.height=(9+h)+"px"; <%-- default 22 --%>
<%}%>
}
+
+var resized = false;
+
+// Called when the view is made visible. This function is needed because
+// with IE the resize only works after the view has been displayed for the first time.
+
+function onShow()
+{
+ if (!resized) {
+ resize();
+ resized = true;
+ }
+}
+
</script>
</head>
diff --git a/org.eclipse.help.webapp/advanced/views.jsp b/org.eclipse.help.webapp/advanced/views.jsp
index 5e2b8cb99..44fbdd867 100644
--- a/org.eclipse.help.webapp/advanced/views.jsp
+++ b/org.eclipse.help.webapp/advanced/views.jsp
@@ -83,6 +83,9 @@ function showView(view)
}else{
iframes[i].className = "visible";
iframes[i].style.visibility="visible";
+ try {
+ iframes[i].contentWindow.onShow();
+ } catch(ex) {}
}
}
}

Back to the top