X Tutup
Skip to content

Commit 35440e8

Browse files
author
zhourenjian
committed
Fixing image position bug in Tree widget and update j2slib.zip
1 parent 312959a commit 35440e8

File tree

2 files changed

+12
-0
lines changed
  • sources
    • net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets
    • net.sf.j2s.lib

2 files changed

+12
-0
lines changed

sources/net.sf.j2s.java.org.eclipse.swt/src/org/eclipse/swt/widgets/Tree.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ thead .tree-head-text {
132132
white-space:nowrap;
133133
float:left;
134134
padding-bottom:1px;
135+
position:relative;
135136
}
136137
/*
137138
@@ -360,6 +361,17 @@ tree-image tree-image-icon {
360361
left:50%;
361362
margin-left:-0.5em;
362363
}
364+
@media all and (-webkit-min-device-pixel-ratio:0){/* safari only */
365+
.image-p-4, .image-p-5 {
366+
margin-bottom:-0.48em;
367+
}
368+
}
369+
*:first-child+html .image-p-4, *:first-child+html .image-p-5 { /* IE7 */
370+
margin-bottom:-0.4em;
371+
}
372+
* html .image-p-4, * html .image-p-5 { /* IE6 */
373+
margin-bottom:-0.4em;
374+
}
363375
/* default icon size 16x16 */
364376
.image-n-4, .image-n-5 {
365377
width:16px;

sources/net.sf.j2s.lib/j2slib.zip

4.83 KB
Binary file not shown.

0 commit comments

Comments
 (0)
X Tutup