mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Fix alignment and test
This commit is contained in:
parent
f36a8d70aa
commit
24e810e9f8
@ -1286,8 +1286,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