Open adsilcott opened 2 years ago
Ah, embedding. My albatross. Have you tried dx
and dy
to nudge the icons? That's how I fix it.
I have very little control over where it draws and I can't explain how it decides sometimes.
That fixed it, thanks! I wasn't aware of dx and dy--I should have read the text documentation a little more thoroughly.
Squib's embedded icons feature is one of my favorite things about it! However, I've encountered an alignment issue in a specific circumstance. Either I'm doing something wrong or it's a bug.
Here is my code:
with the layout:
with the result:![SquibExample001](https://user-images.githubusercontent.com/10678803/139129282-fdf3e5d4-d665-4548-9ecf-cfc06c5fbccb.PNG)
Looks great!
However, when I change the code to add some text to the string:
text str: data.buy.map{ |s| if (s != nil) then s = "Cost: " + s end }, layout: :buy do |embed|
here is the result:![SquibExample002](https://user-images.githubusercontent.com/10678803/139129444-aed9775e-91f0-4c69-addf-bbf721e9aac3.PNG)
Now the text is perfectly aligned, but the icons have dropped down a bit. Is the the correct behavior?