son-dh / mudim

Automatically exported from code.google.com/p/mudim
0 stars 0 forks source link

Mudim, bottom hack #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I think it should be better to load mudim in the bottom of the page,
instead of top. Loading mudim on the top of page may make it cover
important links.

This should work:

f.innerHTML='<div id="dummyContainer" style="position: fixed; top: 100%;
width:100%; padding:0; margin: 0;"><div id="mudimPanel" style="border-top:
1px solid black; padding: 3px; background: '+Mudim.PANEL_BACKGROUND+';
color:'+Mudim.COLOR+'; z-index:100; position: relative; top: -25px; height:
25px; right: 0; width: 100%; text-align: center; font-size: 10pt;"><a
href="http://mudim.googlecode.com" title="Mudzot\'s Input Method">Mudim</a>
v0.8 <input name="mudim" id="mudim-off" onclick="Mudim.SetMethod(0);"
type="radio">'+Mudim.LANG[0]+'<input name="mudim" id="mudim-vni"
onclick="Mudim.SetMethod(1);" type="radio"> '+Mudim.LANG[1]+' <input
name="mudim" id="mudim-telex" onclick="Mudim.SetMethod(2);" type="radio">
'+Mudim.LANG[2]+' <input name="mudim" id="mudim-viqr"
onclick="Mudim.SetMethod(3);" type="radio"> '+Mudim.LANG[3]+' <input
name="mudim" id="mudim-auto" onclick="Mudim.SetMethod(4);" type="radio">
'+Mudim.LANG[4]+' <input id="mudim-checkspell"
onclick="javascript:Mudim.ToggleSpeller();"
type="checkbox">'+Mudim.LANG[5]+'<input id="mudim-accentrule"
onclick="javascript:Mudim.ToggleAccentRule();"
type="checkbox">'+Mudim.LANG[6]+' [&nbsp;<a href="#"
onclick="Mudim.Toggle();return false;">'+Mudim.LANG[7]+'</a> (F9) <a
href="#" onclick="Mudim.TogglePanel();return false;">'+Mudim.LANG[8]+'</a>
(F8) ]</div></div>';

Original issue reported on code.google.com by huan...@gmail.com on 20 Jun 2008 at 5:45

GoogleCodeExporter commented 9 years ago
By "load", I meant "display".

By "defect", I meant "enhancement".

Original comment by huan...@gmail.com on 20 Jun 2008 at 5:47

GoogleCodeExporter commented 9 years ago
Có thể cho tuỳ chọn vị trí bảng điều khiển nhỉ, hoặc sau 
khi "Tắt" mình kéo nó vào
một góc nào đó. Vì phím tắt F8 không phải lúc nào cũng hoạt 
động (trên các laptop
khác nhau, thí dụ Macbook Pro dùng Leopard, bản tiếng Pháp => không 
có tác dụng).
Trước đây tác giả của AVIM cũng khuyến nghị không nên phụ 
thuộc hoàn toàn vào phím tắt.

Original comment by hai...@gmail.com on 24 Jun 2008 at 12:49

GoogleCodeExporter commented 9 years ago
The nice thing about having a bar that automatically shows up in the top or 
bottom of
the page is that we can avoid using some kind of "radio button" integration in 
the
page so we don't have to mess with it (if we don't want to), or some kind of 
stupid
status taking over the status bar, or some kind of hot-key hook.

> Có thể cho tuỳ chọn vị trí bảng điều khiển nhỉ, hoặc sau 
khi "Tắt" mình kéo nó vào
> một góc nào đó.
That would be nice.

Original comment by huan...@gmail.com on 24 Jun 2008 at 9:50

GoogleCodeExporter commented 9 years ago
Delayed ACK. I'm BS now :)
From r140, the panel is moved to bottom, clicking on the link *Mudim* makes it 
toggle
between two display modes (full and minimized).

Original comment by mud...@gmail.com on 30 Jun 2008 at 4:54

GoogleCodeExporter commented 9 years ago
The semi-transparent panel makes the webpage *much more* slower to scroll. I 
think
you should make it opaque.

Original comment by huan...@gmail.com on 1 Jul 2008 at 2:27

GoogleCodeExporter commented 9 years ago
That makes Mudim a bit more attractive, but performance is more important. I'll 
make
it opaque.
btw, I think the *position:fixed* style does affect scrolling speed in Firefox 
3. Can
anyone confirm this?

Original comment by mud...@gmail.com on 12 Jul 2008 at 8:47

GoogleCodeExporter commented 9 years ago
> btw, I think the *position:fixed* style does affect scrolling speed in 
Firefox 3.
> Can anyone confirm this?

Yes, it does. It sucks less in WebKit, but still, position:fixed is a deal 
breaker.

Original comment by huan...@gmail.com on 12 Jul 2008 at 11:02

GoogleCodeExporter commented 9 years ago
Done in r142.

Original comment by mud...@gmail.com on 14 Jul 2008 at 1:34