Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textarea element cols and rows #675

Closed
tzyganu opened this issue Sep 24, 2014 · 4 comments
Closed

Textarea element cols and rows #675

tzyganu opened this issue Sep 24, 2014 · 4 comments
Labels
improvement Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@tzyganu
Copy link
Contributor

tzyganu commented Sep 24, 2014

The values for textarea admin form elements are added after calling the parent constructor.
This means that if I add an element in the admin form and specify the cols or rows they will be ignored.

$fieldset->addField('some_name', 'textarea', array(
        'name'      => 'some_name',
        'label'     => __('Some Label'),
        'title'     => __('Some Label'),
       'rows' => 10,
       'cols' => 40
    ));

I end up with

<textarea data-ui-id="....-fieldset-element-textarea-some-name" class=" textarea" cols="15" rows="2" title="Some Label" name="some_name" id="some_name"></textarea>

In order to change the cols and rows I need to get the element from the fieldset and set the cols and rows.
I think the setters in the constructor should be wrapped in an if statement. This should solve the issue.

if (!$this->getRows()) {
   $this->setRows(2);
}
if (!$this->getCols()) {
    $this->setCols(15);
}
@verklov verklov self-assigned this Sep 29, 2014
@verklov
Copy link
Contributor

verklov commented Sep 29, 2014

@tzyganu, thank you for your suggestion! We will review it and respond as soon as we have the results.

@verklov verklov added the TECH label Dec 12, 2014
@vpelipenko
Copy link
Contributor

Internal ticket: MAGETWO-29012

@vpelipenko vpelipenko added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development PS and removed TECH labels Mar 25, 2015
@vpelipenko
Copy link
Contributor

@tzyganu, we have internal ticket for this fix, but if you want to speed up this, your pull request is very welcome.

vpelipenko added a commit that referenced this issue Apr 3, 2015
Fix for Textarea element cols and rows #675
magento-team added a commit to abeeskau/magento2-community-edition that referenced this issue Apr 8, 2015
* API
   * The orders were extended with the gift messages
   * The page and block data and repository interfaces
   * Updated the public API list
* Framework improvements
    * Improved the profile generator
    * Introduced the new environment for Jasmine tests
* Design
    * Inverted the new admin area styles scope, clean up the old styles
    * New Side Panels on Admin Area
* Various
    * Asynchronous indexing for sales grids
    * Advanced Mini Cart
    * The HTML minification management on Admin Area
    * Minor UI improvements
    * The GitHub contribution process was updated in the README.md file
* Fixed bugs
    * Fixed the assets deployment tool with the minification
    * Fixed the JMeter scenario for the performance toolkit
    * Fixed the static files caching on Varnish
    * Fixed Admin user creation with the duplicated email or name (incorrect URL)
    * Fixed the link on Reset password email for secure URL case
    * Fixed the configured product adding from the wish-list to shopping cart
    * Fixed the long labels display on Admin Area
    * Fixed the Navigation Menu items on Admin Area
    * Various unit and integration tests bugs
* GitHub issues and requests
    [#675] (magento/magento2#675) -- Fix for Textarea element cols and rows #675
@vpelipenko
Copy link
Contributor

Pull request #1136 for this is accepted and it is available from 0.74.0-beta3. Thank you, @tzyganu, for contribution.

lenaorobei added a commit to magento/graphql-ce that referenced this issue Jun 7, 2019
- added data providers
- fixed code style
lenaorobei added a commit to magento/graphql-ce that referenced this issue Jun 7, 2019
lenaorobei added a commit to magento/graphql-ce that referenced this issue Jun 7, 2019
lenaorobei added a commit to magento/graphql-ce that referenced this issue Jun 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests

3 participants