<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
try using horizontalAlignment: Text.AlignHCenter instead of anchors<br>
<br>
<div class="moz-cite-prefix">On 13.02.2014 23:15, Oleksii Serdiuk
wrote:<br>
</div>
<blockquote cite="mid:52FCFDC1.3040607@oleksii.name" type="cite">
<pre wrap="">Hi Oleg,
Aligning to baseline should align text on the same line (even if its
size is different). And it works correctly in my app, for example:
<a class="moz-txt-link-freetext" href="https://openrepos.net/sites/default/files/packages/813/screenshot-20140112215811.jpg">https://openrepos.net/sites/default/files/packages/813/screenshot-20140112215811.jpg</a>
Could it be because one of your labels is rich text and another isn't?
On 13/02/14 14:09, Oleg Linkin wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I have 2 labels:
Label {
id: venueNameLabel
anchors.top: parent.top
anchors.left: parent.left
anchors.leftMargin: 10
textFormat: Text.RichText
font.bold: true
text: "<style
type='text/css'>a:link{color:"+Theme.primaryColor+"; text-decoration:
none;} a:visited{color:"+Theme.primaryColor+"}</style> <a
href=\"venue\">" + venueName + "</a>"
color: delegate.highlighted ? Theme.highlightColor :
Theme.primaryColor
onLinkActivated: {
if (link == "venue") {
console.log ("open venue")
}
}
}
and
Label {
id: venueAddressLabel
anchors.left: venueNameLabel.right
anchors.right: parent.right
anchors.leftMargin: 10
anchors.rightMargin: 10
anchors.baseline: venueNameLabel.baseline
color: delegate.highlighted ?
Theme.secondaryHighlightColor : Theme.secondaryColor
font.pixelSize: Theme.fontSizeTiny
elide: Text.ElideRight
text: venueAddress
}
and result: <a class="moz-txt-link-freetext" href="http://wstaw.org/m/2014/02/13/plasma-desktopmj2631.png">http://wstaw.org/m/2014/02/13/plasma-desktopmj2631.png</a>
Is it possible to align them more better?
</pre>
</blockquote>
<pre wrap="">
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list</pre>
</blockquote>
<br>
</body>
</html>