| View previous topic :: View next topic |
| Author |
Message |
Sarc Newbie

Joined: 10 Sep 2010 Posts: 3
|
Posted: Fri Sep 10, 2010 9:47 pm Post subject: Reducing the width of a TextBox Form-Element |
|
|
Hello everyone,
I'm building an input form and there is one column, that need to be really narrow, because only one character is allowed. However, I dont get the TextBox narrow enough to fit in. The TextBox always overlaps with the borders around it.
I tried to send the TextBox back (or the surrounding border lines to the front), but that didnt work.
Is there another way to achieve such a narrow textbox?
Thanks and Regards
Daniel |
|
| Back to top |
|
 |
swingkyd OOo Advocate

Joined: 15 Sep 2004 Posts: 479
|
Posted: Mon Oct 18, 2010 10:52 am Post subject: |
|
|
| can you post what you are getting and then a mock-up of what you are trying to achieve? |
|
| Back to top |
|
 |
Sarc Newbie

Joined: 10 Sep 2010 Posts: 3
|
Posted: Mon Oct 18, 2010 11:26 am Post subject: |
|
|
Thanks for your reply.
I uploaded two images, which show what I mean.
You find them here: http://img2.imageshack.us/g/formwi.png/
The first image shows the form from OO-Draw, I highlighted the TextBox-Controls
Background-Color, so you see the dimensions of the box.
The second image shows the output of the pdf, after the form was filled.
As you can see, the character 'K' is very near to the right border, which is not what
I want. But when I move the TextBox more to the left, then the TextBox overlaps, and therefore hides, the border left from 'K'.
If I reduce the width of the TextBox, then a part of the character is chopped off.
Of course, the reduction of the font size would be a solution, but that is not what I want.
Hopefully you know now what I mean
Regards
Daniel |
|
| Back to top |
|
 |
swingkyd OOo Advocate

Joined: 15 Sep 2004 Posts: 479
|
Posted: Mon Oct 18, 2010 12:05 pm Post subject: |
|
|
i think I do.
What is your width/height setting of the text box?
Max text length = 1?
Alignment = center?
font size?
I'm just trying to reproduce this.
I've had the same issue but never really delved into what to do about it. I think it was a PDF rendering thing...this is for a PDF form right?
It appears to be an adobe PDF form issue. After opening a sample in Adobe Pro I've noticed the same behaviour regardless of how it was made. You can make the box a little bit bigger and have it overlap and turn off the border so it's not printing.
It also helped me to set the alignment to "left" instead of center. |
|
| Back to top |
|
 |
swingkyd OOo Advocate

Joined: 15 Sep 2004 Posts: 479
|
Posted: Mon Oct 18, 2010 12:20 pm Post subject: |
|
|
here is the link
You can see the problem is Adobe and not OO.org.
Unfortunately you cannot layer the box on top of the form control. Otherwise you could in theory actually get it working more cleanly than what's shown. |
|
| Back to top |
|
 |
Sarc Newbie

Joined: 10 Sep 2010 Posts: 3
|
Posted: Mon Oct 18, 2010 12:30 pm Post subject: |
|
|
Well ok, then I gotta live with what I got. No problem.
But thanks for your help and time. |
|
| Back to top |
|
 |
|