Open XML default textbox left/right padding

D

David Thielen

Hi;

The docs say the default for <v:shape ...
style="mso-wrap-distance-left:0;mso-wrap-distance-right:0" ...> but when you
create a text box with no mso-wrap-distance-left/right in the style= it
appears to use a value of 9.3 points.

Am I missing something in the documentation or does this have a non-zero
default for a textbox?

full XML:
<w:pict>
<v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202"
path="m,l,21600r21600,l21600,xe">
<v:stroke joinstyle="miter"/>
<v:path gradientshapeok="t" o:connecttype="rect"/>
</v:shapetype>
<v:shape id="_x0000_s1026" type="#_x0000_t202"
style="position:absolute;margin-left:.75pt;margin-top:1.05pt;width:1in;height:1in;z-index:1;mso-position-horizontal-relative:margin"
fillcolor="yellow" strokecolor="red" strokeweight="1pt">
<v:textbox style="mso-next-textbox:#_x0000_s1026"
inset="14.4pt,10.8pt,14.4pt,10.8pt">
<w:txbxContent>
<w:p wsp:rsidR="000F6857" wsp:rsidRDefault="00D14015">
<w:r>
<w:t>My text box</w:t>
</w:r>
</w:p>
</w:txbxContent>
</v:textbox>
<w10:wrap type="square" anchorx="margin"/>
</v:shape>
</w:pict>

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,

I've reproduced the issue that you described. When I removed the attributes
mso-wrap-distance-left:0;mso-wrap-distance-right:0; from word xml, Word
interprets it as left: 0.32cm, and right: 0.32cm. And based on my test,
this behavior is consistent in Word 2007, 2003, XP. I am asking the Word
team for the background information and will get back to you soon. Thanks
for your patience.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
J

Jialiang Ge [MSFT]

Hello Dave,

The Word team has confirmed they are aware that there are places they
differ from the spec and are working toward a solution in that area. In
Word, the default value is actually 9pt.

If you have any other concerns or questions, feel free to let me know.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 
J

Jialiang Ge [MSFT]

Hello Dave,

Thanks for the suggestions. I will let the Word team know them.
Is this default padding for text boxes only or any other shapes too?

Yes, this is for any other shapes in Word.

Regards,
Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top