@@ -149,19 +149,36 @@ private void addTrayLine () {
149149floatDiv1 .className ="tray-float-block" ;
150150Element floatDiv2 =document .createElement ("DIV" );
151151floatDiv2 .className ="tray-float-block" ;
152- floatDiv1 .style .width =cellLines *36 +"px" ;
153- floatDiv2 .style .width = (cellLines *36 -18 ) +"px" ;
154- allFloats [cellLines *2 -2 ] =floatDiv2 ;
155- allFloats [cellLines *2 -1 ] =floatDiv1 ;
152+ floatDiv1 .style .width = (cellLines *36 +18 ) +"px" ;
153+ floatDiv2 .style .width =cellLines *36 +"px" ;
154+ Element floatDiv3 =null ;
155+ if (cellLines ==1 ) {
156+ floatDiv3 =document .createElement ("DIV" );
157+ floatDiv3 .className ="tray-float-block" ;
158+ floatDiv3 .style .width = (cellLines *36 -18 ) +"px" ;
159+ allFloats [0 ] =floatDiv3 ;
160+ }
161+ allFloats [cellLines *2 -1 ] =floatDiv2 ;
162+ allFloats [cellLines *2 ] =floatDiv1 ;
156163Element panel =document .getElementById ("swt-desktop-panel" );
157164if (panel !=null ) {
165+ if (floatDiv3 !=null ) {
166+ if (panel .childNodes .length >0 ) {
167+ panel .insertBefore (floatDiv3 ,panel .childNodes [0 ]);
168+ }else {
169+ panel .appendChild (floatDiv3 );
170+ }
171+ }
158172if (panel .childNodes .length >0 ) {
159173panel .insertBefore (floatDiv2 ,panel .childNodes [0 ]);
160174}else {
161175panel .appendChild (floatDiv2 );
162176}
163177panel .insertBefore (floatDiv1 ,panel .childNodes [0 ]);
164178}else {
179+ if (floatDiv3 !=null ) {
180+ document .body .insertBefore (floatDiv3 ,document .body .childNodes [0 ]);
181+ }
165182document .body .insertBefore (floatDiv2 ,document .body .childNodes [0 ]);
166183document .body .insertBefore (floatDiv1 ,document .body .childNodes [0 ]);
167184}
@@ -203,10 +220,14 @@ private void removeTrayLine () {
203220if (!supportNotificationCornerFloat ) {
204221return ;
205222}
223+ OS .destroyHandle (allFloats [cellLines *2 +2 ]);
224+ allFloats [cellLines *2 +2 ] =null ;
206225OS .destroyHandle (allFloats [cellLines *2 +1 ]);
207226allFloats [cellLines *2 +1 ] =null ;
208- OS .destroyHandle (allFloats [cellLines *2 ]);
209- allFloats [cellLines *2 ] =null ;
227+ if (cellLines ==0 ) {
228+ OS .destroyHandle (allFloats [0 ]);
229+ allFloats [0 ] =null ;
230+ }
210231}
211232
212233void initialize () {