Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70612

Issue with ionic tabs using angular js

$
0
0

@gauravcoder wrote:

am using fabric js with ionic framework , with tabs and canvas in all tab view

issue if that if i reload tab with canvas that particular canvas work where as other canvas on next tab does not work i tried to call "calcOffset" on tab click .

Below is my code

jQuery( "a.tab-item" ).click(function() {
		console.log('clicked');
		canvas.calcOffset();canvas.renderAll();
		canvas1.calcOffset();canvas1.renderAll();
	});

link of my code on codepen: http://codepen.io/anon/pen/QygEaZ

To replicate issue:
1: open

here tab 1 is active with canvas1

when u click tab 2 u can not see color in canvas2 means calcOffset not works

2: open

here tab 2 is active with canvas2

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>