mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 11:00:08 +00:00 
			
		
		
		
	tweaks fixes and cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									042c42f86b
								
							
						
					
					
						commit
						8d4f449981
					
				| @ -1503,6 +1503,8 @@ var Outline = { | |||||||
| 	/* XXX not used -- do we need this?? | 	/* XXX not used -- do we need this?? | ||||||
| 	// XXX UPDATE_CODE_SIZE this is a no-op at this point -- do we need this???
 | 	// XXX UPDATE_CODE_SIZE this is a no-op at this point -- do we need this???
 | ||||||
| 	_updateCodeSize: function(code, view){ | 	_updateCodeSize: function(code, view){ | ||||||
|  | 		// XXX
 | ||||||
|  | 		return this | ||||||
| 		code.style.height =  | 		code.style.height =  | ||||||
| 			getComputedStyle( | 			getComputedStyle( | ||||||
| 					view  | 					view  | ||||||
| @ -1691,12 +1693,9 @@ var Outline = { | |||||||
| 		state = state == 'next' ? | 		state = state == 'next' ? | ||||||
| 			node.getAttribute('collapsed') != '' | 			node.getAttribute('collapsed') != '' | ||||||
| 			: state | 			: state | ||||||
| 		if(state){ | 		state ? | ||||||
| 			node.setAttribute('collapsed', '') | 			node.setAttribute('collapsed', '') | ||||||
| 		} else { | 			: node.removeAttribute('collapsed') | ||||||
| 			node.removeAttribute('collapsed') |  | ||||||
| 			for(var elem of [...node.querySelectorAll('textarea')]){ |  | ||||||
| 				elem.updateSize() } } |  | ||||||
| 		this.__change__() | 		this.__change__() | ||||||
| 		return node }, | 		return node }, | ||||||
| 	show: function(node='focused', offset){ | 	show: function(node='focused', offset){ | ||||||
| @ -2584,7 +2583,9 @@ var Outline = { | |||||||
| 					// give the browser a chance to update the DOM...
 | 					// give the browser a chance to update the DOM...
 | ||||||
| 					// XXX revise...
 | 					// XXX revise...
 | ||||||
| 					setTimeout(function(){ | 					setTimeout(function(){ | ||||||
| 						that.runPlugins('__editedcode__', evt, that, elem) }, 0) }  | 						that.runPlugins('__editedcode__', evt, that, elem)  | ||||||
|  | 						// this will resize the text to fill the available area...
 | ||||||
|  | 						elem.style.removeProperty('height') }, 0) }  | ||||||
| 
 | 
 | ||||||
| 				that.runPlugins('__focusout__', evt, that, elem) }) | 				that.runPlugins('__focusout__', evt, that, elem) }) | ||||||
| 		// update .code...
 | 		// update .code...
 | ||||||
|  | |||||||
| @ -48,6 +48,11 @@ var setup = function(){ | |||||||
|   -  |   -  | ||||||
| - ## Bugs: | - ## Bugs: | ||||||
|   focused:: true |   focused:: true | ||||||
|  |   - BUG: cursor placement is off again... | ||||||
|  |     - ``` | ||||||
|  |       text text text | ||||||
|  |       ``` | ||||||
|  |       text text text (a click here is offset right by 4-5 chars) | ||||||
|   - BUG: styling error... |   - BUG: styling error... | ||||||
|     - this _seems `to` work_ |     - this _seems `to` work_ | ||||||
|     - `while` _this `does` not_ |     - `while` _this `does` not_ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user