mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
make sure there's enough space for 4 buttons, and prevent flicker on display
This commit is contained in:
parent
c09070df26
commit
8b537977a4
1 changed files with 7 additions and 6 deletions
|
@ -83,11 +83,11 @@ div.ansbut {
|
||||||
bottom: 1em;
|
bottom: 1em;
|
||||||
height: 55px;
|
height: 55px;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -125px;
|
margin-left: -200px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
width: 250px;
|
width: 400px;
|
||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
display: none;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.easebut {
|
.easebut {
|
||||||
|
@ -133,7 +133,7 @@ function showans () {
|
||||||
$(".inv").removeClass('inv');
|
$(".inv").removeClass('inv');
|
||||||
location.hash = "answer";
|
location.hash = "answer";
|
||||||
$(".ansbut").hide();
|
$(".ansbut").hide();
|
||||||
$("#easebuts").show();
|
$("#easebuts").css('visibility', 'visible');
|
||||||
};
|
};
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$(".ansbut").focus();
|
$(".ansbut").focus();
|
||||||
|
@ -210,8 +210,9 @@ $(".ansbut").focus();
|
||||||
buttons.append(but(labels[i], i+1))
|
buttons.append(but(labels[i], i+1))
|
||||||
buf = ("<table><tr><td align=center>" +
|
buf = ("<table><tr><td align=center>" +
|
||||||
"</td><td align=center>".join(times) + "</td></tr>")
|
"</td><td align=center>".join(times) + "</td></tr>")
|
||||||
buf += "<tr><td>" + "</td><td>".join(buttons) + "</td></tr></table>"
|
buf += ("<tr><td>" +
|
||||||
return "<div id=easebuts>" + buf + "</div>"
|
"</td><td>".join(buttons) + "</td></tr></table>")
|
||||||
|
return "<div id=easebuts><center>" + buf + "</center></div>"
|
||||||
return buf
|
return buf
|
||||||
|
|
||||||
def _buttonTime(self, i, green):
|
def _buttonTime(self, i, green):
|
||||||
|
|
Loading…
Reference in a new issue