use Swing border instead of HTML margins

This commit is contained in:
Sergey Malenkov
2017-10-24 22:49:16 +03:00
parent 29c2089555
commit 1b191d8eec
7 changed files with 1 additions and 6 deletions

View File

@@ -54,6 +54,7 @@ public class TipPanel extends JPanel implements DoNotAskOption {
setBorder(JBUI.Borders.customLine(xD0, 1, 0, 0, 0));
}
myBrowser = TipUIUtil.createTipBrowser();
myBrowser.setBorder(JBUI.Borders.empty(8, 12));
JScrollPane scrollPane = ScrollPaneFactory.createScrollPane(myBrowser, true);
scrollPane.setBorder(JBUI.Borders.customLine(DIVIDER_COLOR, 0, 0, 1, 0));
add(scrollPane, BorderLayout.CENTER);

View File

@@ -1,6 +1,5 @@
body {
/*background: #ffffff;*/
margin: 5px 2px 6px 15px;
}
h1, p, ul {
font-family: 'MS Reference Sans Serif', verdana, arial, sans-serif;

View File

@@ -14,7 +14,6 @@
* limitations under the License.
*/
body {
margin: 5px 2px 6px 15px;
color: #bbbbbb;
}
h1, p, ul {

View File

@@ -1,6 +1,5 @@
body {
/*background: #ffffff;*/
margin: 5px 2px 6px 15px;
}
h1, p, ul {
font-family: 'MS Reference Sans Serif', verdana, arial, sans-serif;

View File

@@ -14,7 +14,6 @@
* limitations under the License.
*/
body {
margin: 5px 2px 6px 15px;
color: #bbbbbb;
}
h1, p, ul {

View File

@@ -1,6 +1,5 @@
body {
/*background: #ffffff;*/
margin: 5px 2px 6px 15px;
}
h1, p, ul {
font-family: 'MS Reference Sans Serif', verdana, arial, sans-serif;

View File

@@ -14,7 +14,6 @@
* limitations under the License.
*/
body {
margin: 5px 2px 6px 15px;
color: #bbbbbb;
}
h1, p, ul {