Re: [Django] #31220: Widgets ignores "cols" attribute.

2020-01-31 Thread Django
#31220: Widgets  ignores "cols" attribute.
+--
 Reporter:  david html  |Owner:  nobody
 Type:  Bug |   Status:  closed
Component:  Forms   |  Version:  3.0
 Severity:  Normal  |   Resolution:  invalid
 Keywords:  widgets | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by david html):

 Replying to [comment:3 felixxm]:
 > You can just use `forms.Textarea` instead of `AdminMarkdownxWidget`.

 Thank you, much appreciated. I can confirm that it was an issue with the
 external package

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.a49241dc516f7484e164067e90c6af05%40djangoproject.com.


Re: [Django] #31220: Widgets ignores "cols" attribute.

2020-01-31 Thread Django
#31220: Widgets  ignores "cols" attribute.
+--
 Reporter:  david html  |Owner:  nobody
 Type:  Bug |   Status:  closed
Component:  Forms   |  Version:  3.0
 Severity:  Normal  |   Resolution:  invalid
 Keywords:  widgets | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by felixxm):

 You can just use `forms.Textarea` instead of `AdminMarkdownxWidget`.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.e8ea36b92148aec2d3a492af79844c07%40djangoproject.com.


Re: [Django] #31220: Widgets ignores "cols" attribute.

2020-01-31 Thread Django
#31220: Widgets  ignores "cols" attribute.
+--
 Reporter:  david html  |Owner:  nobody
 Type:  Bug |   Status:  closed
Component:  Forms   |  Version:  3.0
 Severity:  Normal  |   Resolution:  invalid
 Keywords:  widgets | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--

Comment (by david html):

 Replying to [comment:1 felixxm]:
 > It works with builtin widgets e.g. `forms.Textarea`, so it's not an
 issue in Django but in 3rd party packages.
 thanks for your fast reply.
 could you please tell me how to test this e.g. without using the
 AdminMarkdownxWidget ? I mean replacing the admin TextField attributes. I
 did search in the manual but there is no example with cols. Also I am not
 looking to rewrite any css of the admin or using this in Django forms.
 Just to change it in the admin. I did try removing the widget
 AdminMarkdownx and it still doesn't resize.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.94aced6bc9f3dd1d4d3507123a74f3fd%40djangoproject.com.


Re: [Django] #31220: Widgets ignores "cols" attribute. (was: Widgets ignores cols attribute)

2020-01-30 Thread Django
#31220: Widgets  ignores "cols" attribute.
+--
 Reporter:  david html  |Owner:  nobody
 Type:  Bug |   Status:  closed
Component:  Forms   |  Version:  3.0
 Severity:  Normal  |   Resolution:  invalid
 Keywords:  widgets | Triage Stage:  Unreviewed
Has patch:  0   |  Needs documentation:  0
  Needs tests:  0   |  Patch needs improvement:  0
Easy pickings:  0   |UI/UX:  0
+--
Changes (by felixxm):

 * status:  new => closed
 * resolution:   => invalid
 * component:  Uncategorized => Forms


Comment:

 It works with builtin widgets e.g. `forms.Textarea`, so it's not an issue
 in Django but in 3rd party packages.

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.945a3adb458614c809413d816b554f34%40djangoproject.com.


[Django] #31220: Widgets ignores cols attribute

2020-01-30 Thread Django
#31220: Widgets  ignores cols attribute
-+-
   Reporter:  gurugeek   |  Owner:  nobody
   Type:  Bug| Status:  new
  Component:  Uncategorized  |Version:  3.0
   Severity:  Normal |   Keywords:  widgets
   Triage Stage:  Unreviewed |  Has patch:  0
Needs documentation:  0  |Needs tests:  0
Patch needs improvement:  0  |  Easy pickings:  0
  UI/UX:  0  |
-+-
 I have tried two different packages and it appears that the cols attribute
 for Widget doesn't recognise the "cols" attribute

 example 1


 {{{
 class PostAdmin(admin.ModelAdmin):
 formfield_overrides = {
 models.TextField: {'widget': AdminMarkdownxWidget (attrs={'rows':
 5, 'cols': 100, 'style': ' font-size: 1.5em; font-family:
 HelveticaNeue;'})},

 }
 }}}

 rows and style work fine, cols doesn't change the admin form

 example 2


 {{{
 models.TextField: {'widget': AdminPagedownWidget(attrs={'rows':20,
 'cols':200,
'style': ' font-size:
 1.2em;'
 })},
 }}}

 I also note that in the documentation
 (https://docs.djangoproject.com/en/3.0/ref/forms/widgets/#textarea )
 doesn't refer to the cols attribute so I wonder if it can still be changed

-- 
Ticket URL: 
Django 
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.b624552f06cbc0c8b953a591d41b7e58%40djangoproject.com.