### Eclipse Workspace Patch 1.0 #P org.eclipse.help.webapp Index: advanced/searchScoped.jsp =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.help.webapp/advanced/searchScoped.jsp,v retrieving revision 1.13 diff -u -r1.13 searchScoped.jsp --- advanced/searchScoped.jsp 23 Feb 2005 19:12:50 -0000 1.13 +++ advanced/searchScoped.jsp 28 Mar 2007 23:22:08 -0000 @@ -118,16 +118,38 @@ var isMozilla = navigator.userAgent.toLowerCase().indexOf('mozilla') != -1 && parseInt(navigator.appVersion.substring(0,1)) >= 5; var advancedDialog; -var w = 300; -var h = 300; -function openAdvanced() -{ - var scope = document.getElementById("scope").firstChild; - var workingSet = ""; - if (scope != null) - workingSet = document.getElementById("scope").firstChild.nodeValue; - +function openAdvanced() +{ + var scope = document.getElementById("scope").firstChild; + var workingSet = ""; + if (scope != null) + workingSet = document.getElementById("scope").firstChild.nodeValue; + var minSize = 300; + var maxHeight= 500; + var maxWidth = 600; + var w = minSize; + var h = minSize; + + // If we have large fonts make the dialog larger, up to 500 pixels high, 600 wide + try { + var letterHeight = document.getElementById("searchWord").offsetHeight; + var requiredSize = 16 * letterHeight; + if (requiredSize > minSize) { + if (requiredSize < maxWidth) { + w = requiredSize; + } else { + w = maxWidth; + } + if (requiredSize < maxHeight) { + h = requiredSize; + } else { + h = maxHeight; + } + } + + } catch (e) {} + <% if (data.isIE()){ %> Index: advanced/workingSetManager.jsp =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.help.webapp/advanced/workingSetManager.jsp,v retrieving revision 1.50 diff -u -r1.50 workingSetManager.jsp --- advanced/workingSetManager.jsp 23 Feb 2005 19:12:50 -0000 1.50 +++ advanced/workingSetManager.jsp 28 Mar 2007 23:22:08 -0000 @@ -1,5 +1,5 @@ <%-- - Copyright (c) 2000, 2004 IBM Corporation and others. + Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at @@ -39,12 +39,15 @@ } BODY { + font:<%=prefs.getViewFont()%>; background-color: <%=prefs.getToolbarBackground()%>; color:WindowText; } TABLE { width:auto; + margin:0px; + padding:0px; } TD, TR { @@ -58,19 +61,36 @@ BUTTON { font:<%=prefs.getViewFont()%>; + margin:5px; +} + +BUTTON { + font-size:1.0em; +} + +FORM { + margin: 0px; + border: 0px; } #workingSetContainer { - background:Window; color:WindowText; border: 2px inset ThreeDHighlight; margin:0px 5px; padding:5px; overflow:auto; + height:140px; + background:<%=prefs.getViewBackground()%>; +} + +#buttonArea { + height:4em; } + + - +
-
- +
-
-
+
+
<% @@ -272,10 +302,10 @@ %>
-
- - - + + +
+
@@ -288,13 +318,9 @@
- - -
-
- " style="background:<%=prefs.getToolbarBackground()%>"> -
"> - +
" style="background:<%=prefs.getToolbarBackground()%>"> +
"> +
Index: advanced/workingSet.jsp =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.help.webapp/advanced/workingSet.jsp,v retrieving revision 1.45 diff -u -r1.45 workingSet.jsp --- advanced/workingSet.jsp 23 Feb 2005 19:12:50 -0000 1.45 +++ advanced/workingSet.jsp 28 Mar 2007 23:22:08 -0000 @@ -1,5 +1,5 @@ <%-- - Copyright (c) 2000, 2004 IBM Corporation and others. + Copyright (c) 2000, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at @@ -52,10 +52,13 @@ border:0px; } +INPUT { + font:<%=prefs.getViewFont()%>; +} #workingSet { width:100%; - font:<%=prefs.getViewFont()%>; + font-size:1.0em; } #booksContainer { @@ -67,13 +70,21 @@ padding-<%=isRTL?"right":"left"%>:5px; overflow:auto; height:350px; -<%if (data.isIE()) {%> - width:100%; -<%}%> +<% +if (data.isIE()) { +%> + width:100%; +<% +} +%> +} + +#buttonBar { + height:3em; } .book { - margin:0xp; + margin:0px; border:0px; padding:0px; white-space: nowrap; @@ -90,6 +101,10 @@ font:<%=prefs.getViewFont()%>; } +BUTTON { + font-size:1.0em; +} + .expanded { display:block; } @@ -107,7 +122,7 @@ %> input[type="checkbox"] { border:2px solid WindowText; - margin:0xp; + margin:0px; padding:0px; height:12px; width:12px; @@ -120,7 +135,7 @@ } %> - +