Skip to content

Commit

Permalink
fix visualization glitches
Browse files Browse the repository at this point in the history
  • Loading branch information
remstef committed Aug 21, 2017
1 parent 193dc8b commit 9612a35
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<td><span wicket:id="title"></span></td>
</tr>
<tr wicket:id="xmlelementcontainer">
<td><span wicket:id="xmlelementname"></span></td>
<td><span wicket:id="xmlelementtext"></span></td>
<td><span wicket:id="xmlelementname" style="margin: 3px;"></span></td>
<td><span wicket:id="xmlelementtext" style="margin: 3px;"></span></td>
</tr>
</table>
</wicket:panel>
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,10 @@
text-align:justify;
}

span {
margin-left: 5pt;
}

td.sup {
font-family: "Times New Roman",Times,serif;
font-size:8pt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.ajax.markup.html.AjaxLink;
import org.apache.wicket.behavior.AttributeAppender;
import org.apache.wicket.markup.head.IHeaderResponse;
import org.apache.wicket.markup.head.JavaScriptReferenceHeaderItem;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.html.form.CheckBox;
Expand All @@ -40,7 +38,6 @@
import de.tudarmstadt.ukp.clarin.webanno.model.Mediaresource;
import de.tudarmstadt.ukp.clarin.webanno.model.SourceDocument;
import de.tudarmstadt.ukp.clarin.webanno.support.lambda.AjaxCallback;
import de.tudarmstadt.ukp.clarin.webanno.ui.core.css.theme.CustomBootstrapLessReference;
import de.tudarmstadt.ukp.clarin.webanno.ui.exmaralda.helper.AnnotationTrack;
import de.tudarmstadt.ukp.clarin.webanno.ui.exmaralda.helper.MyBigSegment;
import de.tudarmstadt.ukp.clarin.webanno.ui.exmaralda.helper.MySegment;
Expand Down Expand Up @@ -193,10 +190,6 @@ protected void onEvent(AjaxRequestTarget target) {

}

// @Override
// public void renderHead(IHeaderResponse response) {
// response.render(JavaScriptReferenceHeaderItem.forReference(CustomBootstrapLessReference.get()));
// }

private Video createVideo(PartiturPreferences pref){
final Video video = new Video("media");
Expand Down Expand Up @@ -349,16 +342,14 @@ protected void populateItem(ListItem<MySegment> mySegmentItem) {
};
}

// TODO: replace by internal link
private Label createListRef(String id, int sentence) {
Label listref = new Label("listref", id);
listref.add(new AjaxEventBehavior("click") {
private static final long serialVersionUID = 1L;
@Override
protected void onEvent(final AjaxRequestTarget target) {
String url = String.format("annotation.html?#!p=%s&d=%s&f=%d", doc.getProject().getId(), doc.getId(), sentence);
// target.appendJavaScript(String.format("window.opener.location.href='%s'; window.blur(); window.opener.focus();", url));
target.appendJavaScript(String.format("window.opener.location.href='%s';", url));
target.appendJavaScript(String.format("window.opener.location.href='%s'; window.blur(); window.opener.focus();", url));
}
});
return listref;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<wicket:panel xmlns:wicket="http://wicket.apache.org">
<table>
<tr wicket:id="xmlelementcontainer">
<td><span wicket:id="xmlelementname"></span></td>
<td><span wicket:id="xmlelementtext"></span></td>
<td><span wicket:id="xmlelementname" style="margin: 3px;"></span></td>
<td><span wicket:id="xmlelementtext" style="margin: 3px;"></span></td>
</tr>
</table>
</wicket:panel>

0 comments on commit 9612a35

Please sign in to comment.