mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-10 17:33:24 +01:00
Fix alignment and test
This commit is contained in:
parent
db4052dcb6
commit
d4d8bbc121
@ -1285,8 +1285,9 @@ class Topic extends NodeGraph {
|
||||
});
|
||||
|
||||
// Adjust all topic elements positions ...
|
||||
iconGroup.setPosition(padding, (topicHeight - iconHeight) / 2);
|
||||
textShape.setPosition(padding + iconGroupWith + textIconSpacing, (topicHeight - textHeight) / 2);
|
||||
const yPosition = Math.round((topicHeight - textHeight) / 2);
|
||||
iconGroup.setPosition(padding, yPosition);
|
||||
textShape.setPosition(padding + iconGroupWith + textIconSpacing, yPosition);
|
||||
} else {
|
||||
// In case of images, the size is fixed ...
|
||||
const size = this.getModel().getImageSize();
|
||||
|
@ -27,9 +27,10 @@
|
||||
<option value="sample6">sample6</option>
|
||||
<option value="sample7">sample7</option>
|
||||
<option value="img-support">img-support</option>
|
||||
<option value="error-on-load">welcome-reloaded</option>
|
||||
<option value="error-on-load">error-on-load</option>
|
||||
<option value="complex">complex</option>
|
||||
<option value="huge">complex</option>
|
||||
<option value="huge">huge</option>
|
||||
<option value="icon-sample">icon-sample</option>
|
||||
</select>
|
||||
</p>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user