davidworkman9 / meteor-editable

X-Editable inspired Meteor package for inline edits. Atmosphere: https://atmospherejs.com/workman/meteor-editable
MIT License
17 stars 12 forks source link

Space is included before editable text #2

Closed rootedsoftware closed 10 years ago

rootedsoftware commented 10 years ago

Notice the space before the 100. I don't want the user to have to remember to put in the $ sign and I also don't really want the $ sign to be a part of the form field. So, is there a way to remove the space between the $ and the 100?

image

Thanks

davidworkman9 commented 10 years ago

I'm not sure what I can do about that. Here's a jsfiddle outlining the underlying problem. It's because if there's a new line between elements a space gets inserted, if there's no new line or space, they stay together:

http://jsfiddle.net/N48S8/

This might be a problem Meteor needs to solve. If you include a template on a line, don't push it down to the next line.

You could solve it for now by wrapping the m_editable in a span and putting a negative margin-left on it.