dilipkumar6306316-art opened a new pull request, #21450:
URL: https://github.com/apache/echarts/pull/21450

   ### Summary
   This PR fixes a bug in the Legend component (#21400) where providing an 
invalid
   `legend.orient` value caused unexpected width/height behavior in scroll 
legends.
   
   ### Changes
   - Added a safety check for `legend.orient` index
   - Fallback to 'horizontal' if orient value is invalid
   - Added a comment above the safety check explaining the reason
   - Ensures existing behavior for valid `horizontal` and `vertical` orient 
values remains unchanged
   
   ### Testing
   - Verified that invalid orient values no longer break layout
   - Confirmed that valid 'horizontal' and 'vertical' orient continue to work 
as expected
   - Manual testing with scroll legend examples
   
   ### Related Issue
   Closes #21400
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to