fix bug that text_editor wouldn't reset scrollbar when paste
This commit is contained in:
		
							parent
							
								
									887554b1b9
								
							
						
					
					
						commit
						a7bfc61007
					
				@ -1677,6 +1677,7 @@ namespace nana{	namespace widgets
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
					//_m_put calcs the lines
 | 
										//_m_put calcs the lines
 | 
				
			||||||
					_m_reset_content_size(false);
 | 
										_m_reset_content_size(false);
 | 
				
			||||||
 | 
										impl_->cview->sync(false);
 | 
				
			||||||
				}
 | 
									}
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
			else
 | 
								else
 | 
				
			||||||
@ -1998,7 +1999,8 @@ namespace nana{	namespace widgets
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			if(graph_)
 | 
								if(graph_)
 | 
				
			||||||
			{
 | 
								{
 | 
				
			||||||
				this->_m_adjust_view();
 | 
									if(this->_m_adjust_view())
 | 
				
			||||||
 | 
										impl_->cview->sync(false);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				reset_caret();
 | 
									reset_caret();
 | 
				
			||||||
				impl_->try_refresh = sync_graph::refresh;
 | 
									impl_->try_refresh = sync_graph::refresh;
 | 
				
			||||||
 | 
				
			|||||||
@ -8,6 +8,7 @@
 | 
				
			|||||||
 *	http://www.boost.org/LICENSE_1_0.txt)
 | 
					 *	http://www.boost.org/LICENSE_1_0.txt)
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 *	@file: nana/gui/widgets/textbox.hpp
 | 
					 *	@file: nana/gui/widgets/textbox.hpp
 | 
				
			||||||
 | 
					 *	@contributors: Oleg Smolsky
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <nana/gui/widgets/textbox.hpp>
 | 
					#include <nana/gui/widgets/textbox.hpp>
 | 
				
			||||||
@ -143,6 +144,8 @@ namespace drawerbase {
 | 
				
			|||||||
				API::dev::lazy_refresh();
 | 
									API::dev::lazy_refresh();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							//Added Windows-style mouse double-click to the textbox(https://github.com/cnjinhao/nana/pull/229)
 | 
				
			||||||
 | 
							//Oleg Smolsky
 | 
				
			||||||
		void drawer::dbl_click(graph_reference, const arg_mouse& arg)
 | 
							void drawer::dbl_click(graph_reference, const arg_mouse& arg)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
			if(editor_->select_word(arg))
 | 
								if(editor_->select_word(arg))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user